题解列表
1118Tom数(单个字符while循环求和输出)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char a; int sum = ……
1119水仙花数问题1(使用%1d的输入方式获取每一位数)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a; int b; int c;……
1120水仙花数2(for循环求解)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ for (int i = 100; i ……
1121 8除不尽的数(直接输出1993就行了)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout << "1993"; return 0;}……
1122亲密数(一个for循环+一个求和函数解决)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//这里是求一个数的因子之和//注意的是,它包括 1 ,但不包括本身int sushu(int……
1123列出最简真分数序列(只要排除2和5的倍数的数就行啦)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for (int i = 1; i < 40; i++) { if ……
1124大小写问题(遍历一次就行)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[110]; gets(a); int sz=strlen(a)……
编写题解 2544: N以内累加求和
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int N,sum = 0; cin >> N; ……
编写题解 3010: 奇偶数之和
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n……