最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ if(b==0) { return a; } retu…… 题解列表 2022年02月27日 0 点赞 0 评论 310 浏览 评分:0.0
1978: 分类计算 摘要:无脑打印。#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b;…… 题解列表 2022年02月27日 0 点赞 0 评论 335 浏览 评分:0.0
c++换一个思考方式,把复杂问题简单化-蚂蚁感冒 摘要:唉,自己根据题目模拟蚂蚁只得了40分,看的别人答案才发现可以把碰头的蚂蚁掉头看成穿过!且因为速度相同,不存在追上的问题;这样问题就变得很简单了;此时题目给出的100cm的长度就已经可以忽略了,即使是无…… 题解列表 2022年02月27日 0 点赞 0 评论 540 浏览 评分:9.9
2003: 统计字符个数 摘要:看清楚题目是输入十个字符!!!这里被坑了一手。#include <bits/stdc++.h> using namespace std; int main(){ char s[11]…… 题解列表 2022年02月27日 0 点赞 0 评论 413 浏览 评分:0.0
1989: 奇数个数 摘要:用字符串保存起来遍历。#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> …… 题解列表 2022年02月27日 0 点赞 0 评论 371 浏览 评分:0.0
1443: 蓝桥杯历届试题-数字游戏 java 摘要:- 思路一  摘要:解题思路:注意事项: 对于新手而言这里有个很大的误区,按照题目的输入要求,必须使用long long型的变量输入,而输入和输入的时候是%lld,很容易写成%d参考代码:#include<stdio.h…… 题解列表 2022年02月28日 0 点赞 0 评论 1025 浏览 评分:9.7
hhhhhhhhhhhhhhhh谢谢你 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ bool flag = 0; int n; cin >> n; int…… 题解列表 2022年02月28日 0 点赞 0 评论 446 浏览 评分:9.9