题解列表

筛选

倒数第二 (C语言代码)

摘要:解题思路:先把成绩存放在数组中,再将数组进行简单的从大到小排序,取倒数第二个元素就是倒数第二名。注意事项:我采用的是快速排序的方法,写着比较省事,也可以使用其他的排序方法参考代码:#include <……

Minesweeper (Java代码)

摘要:解题思路:1.输入就不说了,把它放到char的二维数组里面2.循环遍历,如果不是&#39;*&#39;,就把它赋值为&#39;0&#39;3.循环遍历,如果他是&#39;*&#39;,把它的上下左右,……

程序员美工梦 (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]……