蓝桥杯2018年第九届真题-防御力 摘要:解题思路:注意事项:参考代码:n1,n2=map(int,input().split()) lsA=list(map(int,input().split())) copy_lsA=[_ for _…… 题解列表 2023年02月15日 0 点赞 0 评论 342 浏览 评分:9.9
2330: 信息学奥赛一本通T1178-成绩排序 摘要:```cpp #include #include using namespace std; typedef struct student { char m[20]; in…… 题解列表 2023年02月15日 0 点赞 0 评论 976 浏览 评分:9.9
2359: 信息学奥赛一本通T1448-电路维修 摘要:```cpp #include #include #include using namespace std; typedef int ll; char mp[1002][1002]; b…… 题解列表 2023年02月15日 0 点赞 0 评论 492 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:##解题思路 首先,了解下素数 素数是指在大于1的自然数中,除了1和它本身以外不再有其他因数的自然数。(即只有1跟它本身能整除掉这个数) 据此,我们可以想到 **遍数法**(用循环从1开始…… 题解列表 2023年02月15日 0 点赞 0 评论 334 浏览 评分:9.9
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: list1 = input().split() for i in list1: …… 题解列表 2023年02月15日 0 点赞 0 评论 564 浏览 评分:9.9
连续出现的字符 看一下题 想一下想 一遍过 这种思想要掌握 摘要:解题思路:遍历该位置后面n个字符注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; string s;//字…… 题解列表 2023年02月15日 0 点赞 0 评论 401 浏览 评分:9.9
发现输入用gets是错误的,要用scanf输入字符串才对 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>//找最大 int max(int n,int m){ return n>m?n:m;}int ma…… 题解列表 2023年02月16日 0 点赞 0 评论 395 浏览 评分:9.9
高精度乘法 摘要:解题思路:字符-》数字-》相乘后同位相加-》进位-》判断前导是否为0-》输出最终结果注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ …… 题解列表 2023年02月16日 1 点赞 0 评论 784 浏览 评分:9.9
1562————蓝桥杯算法提高VIP-计算时间 摘要: import java.util.Scanner; public class Main { public static void main(String[] …… 题解列表 2023年02月16日 0 点赞 0 评论 357 浏览 评分:9.9
围成面积(搜索) 摘要:解题思路:这道题可以使用深度优先搜索(DFS)来解决。 `1.遍历图形` ——`首先,我们需要遍历给定的图形,找出所有未被围住的点。为了确保我们不会遗漏任何一个未被围住的点,我们需要从图形的边缘开…… 题解列表 2023年02月16日 0 点赞 0 评论 534 浏览 评分:9.9