题解列表

筛选

1012c语言代码

摘要:解题思路:注意事项:1,一定要记得初始化;2,回车键也算输入字符;参考代码:#include<stdio.h>int main(){ char a; int b=0,c=0,d=0,e=0; whil……

1013c语言代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,a=2,s=2,sn=0; scanf("%d",&n); fo……

1014c语言代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){long n,i,s=1,sn=0; scanf("%d",&n); for(i=1;i<=n;i++){ sn……

1015c语言代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,i; double sum1=1,sum2=pow(1,2)……

1016c语言代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100;i<1000;i++){ a=i/100; b=i/10%10……

c代码记录之数组插入处理

摘要:解题思路:思路1:逐个遍历输出,当遍历到插入的数字时,先打印该插入数字,再继续遍历输出后面的数字(只是应付这题,并未将数字插入到数组)思路2:将数字插入进数组,又有两种思路思路I:重新创建一个数组,把……

基因相关性

摘要:注意事项:%c会读取任何字符,包括空格、制表符和换行符参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ ……

C语言训练-"水仙花数"问题1

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int number;    int originalNumber, remainder, resul……