1012: [编程入门]字符串分类统计 摘要:#include<stdio.h> int main() { char c[200];int num=0,let=0,pace=0,el=0; gets(c); int len=str…… 题解列表 2022年06月05日 0 点赞 0 评论 386 浏览 评分:0.0
蓝桥杯2021年第十二届国赛真题-异或变换 摘要:打表发现 当n=1时,异或1次循环 n=2时,2次循环 n=3,4次 n=4,4次 n=5,8次 ... ... 显然可得,当数串长度为n时,异或2^(log2(n)+1)次即可重新得到…… 题解列表 2022年06月05日 0 点赞 0 评论 956 浏览 评分:4.0
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 评论 345 浏览 评分: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 评论 246 浏览 评分: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 评论 365 浏览 评分:0.0
python直观解法 摘要:解题思路:只要算出每次考试各科可能的情况,然后对其分支计算下一次考试可能的情况直到最后一场考试注意事项:python中整型无范围限制,所以可以最后再取余参考代码:# 政治,综合,历史,地理result…… 题解列表 2022年06月06日 0 点赞 0 评论 404 浏览 评分:0.0
1048写题记录 摘要:解题思路:简单输入然后进行切片注意事项:目前还不会在一行里面没有空格的输入多个数据,为了避免输入数据太多导致出错的情况,将输入的两个数字分别作为切片的开始和结束来人为限制输出的字符串长度。参考代码:n…… 题解列表 2022年06月06日 0 点赞 1 评论 508 浏览 评分:0.0