题解列表

筛选

假币问题 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; while(cin>>n) {……

C语言程序设计教程(第三版)课后习题7.2 (C++代码)

摘要:解题思路:标准“选择排序”算法题目什么是选择排序?即从一组数开头(或末尾)找一个数,与它随后(或之前)的数比较大小,并按照提议从小到大(或从大到小)的顺序排列(交换变量的值)然后再从前(或从后)找到第……

倒杨辉三角形 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int a[10][10]; int main……

不容易系列 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int N; cin>>N; int n; ……

程序员美工梦 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void f1_print(int n) { for(int i=1;i<=n;……

上车人数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=1000+5; struct num{ int b1,b……

三进制小数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> using namespace std; int mai……

三角形 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int n_max=100+5; int a[n_max][n_max]……

数列 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int M=10000+5; int a[M]; int main()……