题解列表
C语言训练-排序问题<2>(水题)
```c#include#includeintcmp(constvoid*a,constvoid*b){return*(int*)b-*(int*)a;}intmain(){inta[11],i;for(i=0;i
字符串对比,100%通过!!!
摘要:解题思路:注意事项:参考代码:a = input()b = input()if len(a) != len(b): print(1)elif a == b: print(2)elif a.……
喜欢简单的可以看一下
摘要:解题思路:注意事项:count一定要初始化为0,而且数字字符记得带单引号参考代码:#include<stdio.h>int main(){char str[255];int i,count=0;get……
看到那么多字就头晕,细下心来读出数学公式即可
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[100][2]; //定义个二维数组,存放每组数据 scanf("……
思路清晰版本,不懂就进来
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){int i,sum,t,k;int j=9;j=5*pow(j,5);//最大的数……
感觉不断练习除余数得到单数的方法
摘要:解题思路:if判断条件语句注意事项:else的细心参考代码:#include<stdio.h>int main(){ int n,k; int num=0; scanf("%d %d……