题解列表

筛选

此题可AC(C语言代码)

摘要:解题思路:注意事项:                    此题可AC参考代码:#include<stdio.h>int main(){ int i; for (i = 10; i <= 1000; ……

此题可AC (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10], i, t, j; for (i = 0; i < 10; ……

超简单 可AC(C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b) ……

简单的a+b (C语言代码)

摘要:解题思路:注意事项:参考代码:include<stdio.h>int main(){    int a,b;    sacnf("%d %d",&a,&b);    printf("%d %d",a,……

IP判断 (C语言代码)

摘要:#include <stdio.h> #include <string.h> #include <math.h> int deal(char s[],int n);//函数解决 int mai……

C语言程序设计教程(第三版)课后习题10.2 (C语言代码)

解题思路:通过数组存储用户输入的字符串,N代表字符串个数,STR_LEN代表最大字符串长度。然后写两个函数完成解题,一个是排序函数,利用选择法排序(可以利用其他更高效的排序法),另一个是交换字符串函数。注意事项:在交换函数里面新建另一个字符串当做一个空字符串来交换需要交换的字符串。

母牛的故事 此题可AC (C语言代码)

摘要:解题思路:                     //四年后,本年牛的数量等于上一年的数量加三年前的数量注意事项:                 参考代码:#include<stdio.h>int……