题解列表

筛选

运用函数解决问题

摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us……

1635 这才是好方法

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

编程入门]二维数组的转置

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h> typedef struct student {    double    number;  ……

1979,好懂的方法

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

最大公约数与最小公倍公倍数 C语言

摘要:解题思路:辗转相除法求出最小公约数,最小公倍数等于两数乘积/最小公约数。注意事项:参考代码:#include <stdio.h>int main(){ int x, y, a, b, x1, x2; ……

水仙数求和

摘要:解题思路:注意事项:参考代码:for i in range(100,1000):    sn = 0    for j in str(i):        j=int(j)        sn += ……

1000: [竞赛入门]简单的a+b C写法

摘要:解题思路:先定义两个变量,然后通过键盘输出scanf来输出自定数值,可以用while循环多次实验注意事项:参考代码:#include<stdio.h>                         ……

字符逆序c语言代码家谱

摘要:解题思路:注意事项:注意输出时i的最大值参考代码:#includeint main(){   char c,a[100];    int i=0,t; while((c=getchar())!=EOF……