题解列表
用筛法求之N内的素数
摘要:解题思路:筛法就是把数据按从小到大的顺序排列,找到第一个素数,再筛选掉数据内所有与此数有关的数,完成之后再找下一个素数,再次筛选,以此类推注意事项:参考代码:#include<iostream>usi……
A+B for Input-Output Practice (II)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; int arr[100]; int sum = 0; c……
A+B for Input-Output Practice (III)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while(cin>>a>>b) { if (a……
A+B for Input-Output Practice (IV)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b,sum=0; while (cin >> a && ……
A+B for Input-Output Practice (V)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b,c,sum=0; cin >> c; while (……
A+B for Input-Output Practice
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b,c,sum=0; cin >> c; while (……
A+B for Input-Output Practice (VI)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b,c,sum=0; while (cin >> a) ……
A+B for Input-Output Practice (VII)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while (cin >> a>>b) { ……