题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数,小白易懂 摘要:解题思路:注意事项:i不能从0开始参考代码:#include<iostream>using namespace std;int main(){ int a,b,ret,t; cin>>a>…… 题解列表 2024年01月19日 0 点赞 0 评论 385 浏览 评分:0.0
C++输出所有水仙花数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j; int a,b,c; for(i…… 题解列表 2024年01月19日 0 点赞 0 评论 356 浏览 评分:0.0
1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 317 浏览 评分:6.0
2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long m,a,x=0; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 499 浏览 评分:9.9
题解 2829: 数1的个数 摘要:解题思路:分离数位注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; …… 题解列表 2024年01月19日 0 点赞 0 评论 246 浏览 评分:0.0
2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,x=0;//要付初值 …… 题解列表 2024年01月19日 0 点赞 0 评论 350 浏览 评分:9.9
题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n,sum=0; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 290 浏览 评分:9.9
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n,s=0; cin>>n; …… 题解列表 2024年01月19日 0 点赞 0 评论 262 浏览 评分:0.0
1267:A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a; cout<<a+b…… 题解列表 2024年01月19日 0 点赞 0 评论 735 浏览 评分:6.0
C++超简单思路 摘要:解题思路:将数字问题转换成字符串问题注意事项:注意看题目要求参考代码:#include<iostream>#include<string>#include<algorithm>#include<std…… 题解列表 2024年01月19日 0 点赞 0 评论 435 浏览 评分:9.9