蓝桥杯2014年第五届真题-兰顿蚂蚁 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,n;cin>>m>>n; int a[m][n…… 题解列表 2024年03月16日 1 点赞 0 评论 347 浏览 评分:9.9
C++简单粗暴解决弟弟作业问题 摘要:解题思路:直接将计算表达式当作字符串输入,读取出a,b,c的值。判断即可。在字符串中a的分界是+或者-;使用string中的find_first_of函数,找到第一个出现+、-的位置string各个函…… 题解列表 2024年03月16日 0 点赞 0 评论 236 浏览 评分:9.9
蓝桥杯2017年第八届真题-发现环 摘要:解题思路:通过读题发现,只有一个环,那么就可以使用tarjan将这一个环缩成一个点,将这一个点中的点输出即可注意事项:参考代码:#include<bits/stdc++.h> using names…… 题解列表 2024年03月16日 0 点赞 0 评论 205 浏览 评分:0.0
连续输出A+B for Input-Output Practice 摘要:解题思路:用数组存放,再输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum,b; int k=0; in…… 题解列表 2024年03月16日 0 点赞 0 评论 223 浏览 评分:0.0
超级简单A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cou…… 题解列表 2024年03月16日 0 点赞 0 评论 302 浏览 评分:9.9
1075: 台球碰撞(绝对牛逼!!!) 摘要:解题思路:注意事项:解析请看这里: https://blog.dotcpp.com/a/63859参考代码:#include <iostream>#include <cmath>#include <…… 题解列表 2024年03月16日 0 点赞 0 评论 398 浏览 评分:10.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<=…… 题解列表 2024年03月16日 0 点赞 0 评论 253 浏览 评分:9.9
标准 A+B for Input-Output Practice (IV) 摘要:解题思路:用数组存放每次结果,再依次输出。注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int i=0; int…… 题解列表 2024年03月16日 0 点赞 0 评论 485 浏览 评分:9.9
史上最笨比做法 摘要:解题思路:为了达到如题排序输出格式,采用类与容器结合方式,将一个数的最高位设置为排序字段,赋值给类的order属性注意事项:参考代码:class ShuSort{public: ShuSort(int…… 题解列表 2024年03月16日 0 点赞 0 评论 264 浏览 评分:9.9
编写题解 3073: 字符串匹配问题(strs)——C++ map set,括号匹配总结 摘要:#### 原题链接 [题目 3073: 字符串匹配问题(strs)](https://www.dotcpp.com/oj/problem3073.html "题目 3073: 字符串匹配问题(str…… 题解列表 2024年03月16日 0 点赞 0 评论 454 浏览 评分:9.9