题解列表

筛选

数字的顺序,逆序输出

摘要:解题思路:使用strlen()函数,循环注意事项:使用该函数包含string.h的头文件参考代码:#include<stdio.h>#include<string.h> //注意使用该头文件int m……

自定义函数之字符提取

摘要:解题思路:用s[ ]和t[ ]对比注意事项:s[ ]的大小参考代码:#include<stdio.h>int main(){ char s[100],t[6]="aeiou"; int i,c; fo……

2841: 大整数加法(超详细解答)

摘要:解题思路:写了很久,要注意前导0和十进制的运算注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char arr[201]={&#……

if语句菜鸟驿站写法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n%2==0){     printf("even"); }……

题解 3000: 交换值

摘要:解题思路:简单一点注意事项:参考代码:     int a,b;    scanf("%d %d",&a,&b);    printf("%d %d",b,a);        return 0;……

2839: 石头剪刀布

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int na,nb,n,i;    int a1=0,b1=0;//记……

新手必看,苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,y; scanf("%d %d %d",&n,&x,&y); int e=y/x; i……