c语言题解c语言题解c语言题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>int main(){ long long i,j,n,p=0…… 题解列表 2023年03月06日 0 点赞 0 评论 308 浏览 评分:0.0
1229基础解法(Python) 摘要:解题思路:直接调用Python的math库函数即可注意事项:Python 3.9 以上版本可以直接调用math.lcm()函数,其他版本只有math.gcd()函数参考代码:from math imp…… 题解列表 2023年03月06日 0 点赞 0 评论 177 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n = int(input()) a, b = 1, 0 for i in range(1,n+1): a *= i; b += a print(b)…… 题解列表 2023年03月07日 0 点赞 0 评论 223 浏览 评分:0.0
1056: 二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double n,f; scanf("%lf",&n); f=(n-32)*5/9; printf("%.2lf…… 题解列表 2023年03月07日 0 点赞 0 评论 361 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); if(a>b) printf(">"); else …… 题解列表 2023年03月07日 0 点赞 0 评论 187 浏览 评分:0.0
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:C#include<stdio.h>int main(){ double x; scanf("%lf",&x); if(x<1) printf("%.2lf",x); e…… 题解列表 2023年03月07日 0 点赞 0 评论 190 浏览 评分:0.0
2824: 求出e的值 摘要:解题思路:注意事项:参考代码:n = int(input()) a = e = 1 for i in range(1,n+1): a *= i e += 1 / a pri…… 题解列表 2023年03月07日 0 点赞 0 评论 295 浏览 评分:0.0
解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,k,count=0; scanf("%d %d",&m,&k); //先用第三方变量进…… 题解列表 2023年03月07日 0 点赞 0 评论 202 浏览 评分:0.0
暴力解法,最大限度减低难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=1; scanf("%d",&n); for(int i=1;i<=…… 题解列表 2023年03月07日 0 点赞 0 评论 186 浏览 评分:0.0
1705: 数据结构-最小生成树 prim算法 附一个问题 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include…… 题解列表 2023年03月07日 0 点赞 0 评论 220 浏览 评分:0.0