【Python题解】蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:参考代码:a, b, n = map(int, input().split()) finish_week = 5 * a + 2 * b # 计算一周的完成题量 weeks = n // …… 题解列表 2023年01月09日 0 点赞 1 评论 987 浏览 评分:8.4
求整数的和与均值 注重细节就行 摘要:解题思路:scanf输入,for语句应用,算数格式一致注意事项:注意整数与小数的统一参考代码:#include<stdio.h>int main(){ int n,a,sum=0; dou…… 题解列表 2023年01月09日 0 点赞 0 评论 557 浏览 评分:0.0
时间超限来看 有注释!!! 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,num,a[10001]; int f1(int n){ if(a[n]…… 题解列表 2023年01月09日 0 点赞 0 评论 964 浏览 评分:9.9
3030: 全排列 ```cpp#include#includeusingnamespacestd;chara[1001];intb[1001],c[1001],tot;voidhxs(intn){for(inti=0;i 题解列表 2023年01月09日 0 点赞 0 评论 920 浏览 评分:9.9
就是比较简单的递推 有标注 应该可以看懂 解题思路:注意事项:参考代码:#includeusingnamespacestd;longlongn,k;longlongf1(longlongn,longlongk)//一般用ll防止数据过大{if(n 题解列表 2023年01月09日 0 点赞 0 评论 881 浏览 评分:9.9 3029: 逆波兰表达式 摘要:```cpp #include #include using namespace std; double func() { char ch[100]; (cin>>ch)…… 题解列表 2023年01月09日 0 点赞 0 评论 1050 浏览 评分:9.9 水仙花数的另外解答 解题思路:看到很多解题思路都是把所有三位数全部试一遍,或许可以从水仙花数组成入手,将不是三位数的除去,得到水仙数。结果是一样的。若继续优化,还可以在三位全部算完之前将超过999的数字直接排除,比如第三位是9,第二位就可以从0~6,第三位可以更加缩小范围注意事项:第一位不能是0, 题解列表 2023年01月09日 0 点赞 0 评论 508 浏览 评分:9.9 二级C语言-计负均正(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,sum=0,cnt=0,n,m=0; for(i=0;i<20;i++){ scanf("%…… 题解列表 2023年01月09日 0 点赞 0 评论 469 浏览 评分:9.9 3028: 数的计数(Noip2001) 摘要:```cpp #include using namespace std; int h[1001],s[1001]; int main() { int n; cin>>n;…… 题解列表 2023年01月09日 0 点赞 0 评论 1331 浏览 评分:9.9 二级C语言-同因查找(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ for(int i=10;i<=1000;i++){ if(i%2==0&&i%3==0&&i%7==0…… 题解列表 2023年01月09日 0 点赞 0 评论 526 浏览 评分:9.9 « 12...1628162916301631163216331634...59105911 »
3029: 逆波兰表达式 摘要:```cpp #include #include using namespace std; double func() { char ch[100]; (cin>>ch)…… 题解列表 2023年01月09日 0 点赞 0 评论 1050 浏览 评分:9.9
水仙花数的另外解答 解题思路:看到很多解题思路都是把所有三位数全部试一遍,或许可以从水仙花数组成入手,将不是三位数的除去,得到水仙数。结果是一样的。若继续优化,还可以在三位全部算完之前将超过999的数字直接排除,比如第三位是9,第二位就可以从0~6,第三位可以更加缩小范围注意事项:第一位不能是0, 题解列表 2023年01月09日 0 点赞 0 评论 508 浏览 评分:9.9
二级C语言-计负均正(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,sum=0,cnt=0,n,m=0; for(i=0;i<20;i++){ scanf("%…… 题解列表 2023年01月09日 0 点赞 0 评论 469 浏览 评分:9.9
3028: 数的计数(Noip2001) 摘要:```cpp #include using namespace std; int h[1001],s[1001]; int main() { int n; cin>>n;…… 题解列表 2023年01月09日 0 点赞 0 评论 1331 浏览 评分:9.9
二级C语言-同因查找(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ for(int i=10;i<=1000;i++){ if(i%2==0&&i%3==0&&i%7==0…… 题解列表 2023年01月09日 0 点赞 0 评论 526 浏览 评分:9.9