蓝桥杯2020年第十一届省赛真题-八次求和 摘要:防止爆掉,能取模的地方就取模,多次取模答案是不会变得参考代码:#include<bits/stdc++.h> using namespace std; const int M = 12345678…… 题解列表 2022年03月13日 0 点赞 0 评论 377 浏览 评分:6.0
新手编写,请批评指正 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a,b,t=0; scanf("%d%d",&a,&b);…… 题解列表 2022年03月17日 0 点赞 0 评论 317 浏览 评分:6.0
同学的等待(贪心)饭堂排队 摘要:思路就是:点餐快的人排前面,让后面大家等待的时间短。1、一开始用c写,结果发现超时,冒泡排序太慢了#include <stdio.h> int main() { int n,a[100001],…… 题解列表 2022年03月19日 0 点赞 0 评论 632 浏览 评分:6.0
企业奖金发放,带小数点, 摘要:解题思路:注意事项:不知道为啥,在编译器上没问题,就是提交后显示答案错误。参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); …… 题解列表 2022年03月21日 0 点赞 0 评论 308 浏览 评分:6.0
小九九解法 摘要:解题思路:注意事项:参考代码:for j in range(1, 10): for i in range(1, j+1): z = i*j print("{:d}*{…… 题解列表 2022年03月22日 0 点赞 0 评论 706 浏览 评分:6.0
python-乘积最大 摘要:解题思路:递归搜索。假设字符串长度为n,下标从0开始。则我们可以在第0~n-2位数后面放”ד号。接下来遍历所有符合条件的位置,每个位置有两种情况,放和不放。求出所有符合条件的结果,即可求出答案。具体…… 题解列表 2022年03月22日 0 点赞 0 评论 441 浏览 评分:6.0
蓝桥杯2020年第十一届省赛真题-数字三角形 摘要: #include using namespace std; int a[1000][1000], b[1000][1000]; int n; …… 题解列表 2022年03月24日 0 点赞 1 评论 410 浏览 评分:6.0
蓝桥杯2020年第十一届省赛真题-字符串编码(Python) 摘要:解题思路:注意事项:参考代码:s = input()ans = ''i = 0while i<len(s): if i+1>=len(s) or int(s[i])>2: …… 题解列表 2022年03月24日 0 点赞 0 评论 368 浏览 评分:6.0
蓝桥杯2020年第十一届省赛真题-分类计数 摘要:```c //#define _CRT_SECURE_NO_WARNINGS #include #include #include int main() { char c; int …… 题解列表 2022年03月27日 0 点赞 0 评论 449 浏览 评分:6.0
1000简单的a+b题解 摘要:解题思路:此题很简单,只需要将两个数相加即可。注意事项:并不是一组数据,而是多组,所以要用到while。重复输入输出就可以了。参考代码:#include<iostream>//所需头文件using n…… 题解列表 2022年03月27日 0 点赞 0 评论 305 浏览 评分:6.0