题解列表

筛选

C语言训练-排序问题<1> (C语言代码)

摘要:解题思路:从开头开始比较,若a[1]>a[2],将两者交换,以此类推注意事项:首尾相连,环环相扣参考代码:#include<stdio.h>int main(){int i,p,t,a[4];for(……

连续自然数和 (C++代码)

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

诡秘的余数 (C++代码)

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

蛇行矩阵 (C语言代码)

摘要:解题思路:定义数组a[i][j]; i=0     1  3  6  10  15   第一行第一列为a[0][0]  i=1     2  5  9  14