题解列表
C语言训练-排序问题<2>(水题)
摘要:```c
#include
#include
int cmp(const void* a,const void* b){
return *(int *)b-*(int *)a;
}
……
字符串对比,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("……