题解列表

筛选

求平方和代码

摘要:解题思路:注意事项:参考代码:1.#include<stdio.h>int main(){    int A,B;    scanf("%d %d",&A,&B);    printf("%d",A*……

圆的面积代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float r;    float pi =3.1415;    float s;    scanf("%……

三个数找最大值代码

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

分段函数求值

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

数字处理代码

摘要:解题思路:给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123注意事项:参考代码:#include<stdio.h>int……

很简单的python代码

摘要:解题思路:注意事项:参考代码:for i in range(2,1000):    total_sum = 0    array1 = list(str(i))    for digit in arr……

[编程入门]阶乘求和

摘要:解题思路:                t记录算出的当前数的阶乘,(n-1)!*n=n!    s是各个数的阶乘的和。     注意事项:  注意结果类型,不要溢出。参考代码: