题解列表

筛选

没用数组,简单处理

摘要:解题思路:没用数组参考代码:#include<iostream>using namespace std;int main(){    int i,s[9]; for(i=0;i<9;i++) c……

简单易懂的题解(迭代)

摘要:解题思路:                这个题看似简单,必须需要懂它的逻辑才能做出来。经过我动手写,得到了一个规律:第一个数为a,第二个数为 a * 10 ^1 + 第一个数;第三个数等于a * 1……

常规发处理变量

摘要:解题思路:注意事项:调用fun()函数时,注意参数参考代码:#include<stdio.h> int fun(int num) { int a, b, c, d; a = num / 1……

1872:春夏秋冬判断

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

2226 .c语言练习

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

调用数学函数库求解

摘要:解题思路:先输入三个数字,依次求解累加注意事项:注意不要把小数点丢了,这是一个小细节。参考代码:#include<stdio.h> #include<math.h> int main() { ……

1093——字符逆序

摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s……