题解列表

筛选

1229基础解法(Python)

摘要:解题思路:直接调用Python的math库函数即可注意事项:Python 3.9 以上版本可以直接调用math.lcm()函数,其他版本只有math.gcd()函数参考代码:from math imp……

1014: [编程入门]阶乘求和

摘要:解题思路:注意事项:参考代码:n = int(input()) a, b = 1, 0 for i in range(1,n+1):     a *= i; b += a print(b)……

1056: 二级C语言-温度转换

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double n,f; scanf("%lf",&n); f=(n-32)*5/9; printf("%.2lf……

整数大小比较

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

二级C语言-分段函数

摘要:解题思路:注意事项:参考代码:C#include<stdio.h>int main(){ double x; scanf("%lf",&x); if(x<1) printf("%.2lf",x); e……

2824: 求出e的值

摘要:解题思路:注意事项:参考代码:n = int(input()) a = e = 1 for i in range(1,n+1):     a *=  i     e += 1 / a pri……