1013: [编程入门]Sn的公式求和 摘要:#include<stdio.h> int main() { int n; scanf("%d",&n); int sum=0; for(int i=1;i<=n;i++){ in…… 题解列表 2022年06月06日 0 点赞 0 评论 259 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:注意一下数据范围,unsigned long int型最大参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n)…… 题解列表 2022年06月06日 0 点赞 0 评论 352 浏览 评分:0.0
1015: [编程入门]求和训练 摘要:#include<stdio.h> int pf(int x){ int s=0; for(int i=1;i<=x;i++){ s+=i*i; } …… 题解列表 2022年06月06日 0 点赞 0 评论 279 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:#include<stdio.h> int main() { int a,b,c; for (int i=100;i<1000;i++){ a=i%10;b=i/10%1…… 题解列表 2022年06月06日 0 点赞 0 评论 233 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:#include<stdio.h> int ws(int x){ int sum=0,ls[10000],j=0; for(int i=1;i<=(x/2+1);i++){ …… 题解列表 2022年06月06日 0 点赞 0 评论 247 浏览 评分:0.0
1018: [编程入门]有规律的数列求和 摘要:#include<stdio.h> int main() { float a=2.0,b=1.0,sum=0.0,j,k; int n; scanf("%d",&n); for(int i…… 题解列表 2022年06月06日 0 点赞 0 评论 367 浏览 评分:0.0
python直观解法 摘要:解题思路:只要算出每次考试各科可能的情况,然后对其分支计算下一次考试可能的情况直到最后一场考试注意事项:python中整型无范围限制,所以可以最后再取余参考代码:# 政治,综合,历史,地理result…… 题解列表 2022年06月06日 0 点赞 0 评论 408 浏览 评分:0.0
1048写题记录 摘要:解题思路:简单输入然后进行切片注意事项:目前还不会在一行里面没有空格的输入多个数据,为了避免输入数据太多导致出错的情况,将输入的两个数字分别作为切片的开始和结束来人为限制输出的字符串长度。参考代码:n…… 题解列表 2022年06月06日 0 点赞 1 评论 509 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:#include<stdio.h> int main() { int n;float h,s,m; scanf("%f %d",&h,&n); m=h; s=0; for(int i=0…… 题解列表 2022年06月07日 0 点赞 0 评论 300 浏览 评分:0.0