蓝桥杯2020年第十一届省赛真题-走方格 摘要:解题思路:第一行和第一列初始化为1注意事项:行号和列数都是偶数,不能走入这一格中。参考代码:#include<iostream>using namespace std;int n,m;int arr[…… 题解列表 2023年02月15日 0 点赞 0 评论 437 浏览 评分:9.9
短路运算代替判断语句 摘要:解题思路:用短路运算来进行判断,语句更加简洁注意事项:参考代码:#include <stdio.h>int main() { int x; scanf("%d",&x); (x==1…… 题解列表 2023年02月15日 0 点赞 0 评论 569 浏览 评分:9.9
2857: 加密的病历单 C++ 摘要:解题思路: 加密时: 1. 反转 2. 大小写转换 3. 循环左移3位 则解密时: &nbs 题解列表 2023年02月15日 0 点赞 0 评论 538 浏览 评分:9.9
蓝桥杯2018年第九届真题-防御力 摘要:解题思路:注意事项:参考代码:n1,n2=map(int,input().split()) lsA=list(map(int,input().split())) copy_lsA=[_ for _…… 题解列表 2023年02月15日 0 点赞 0 评论 451 浏览 评分:9.9
2330: 信息学奥赛一本通T1178-成绩排序 摘要:```cpp #include #include using namespace std; typedef struct student { char m[20]; in…… 题解列表 2023年02月15日 0 点赞 0 评论 1057 浏览 评分:9.9
2359: 信息学奥赛一本通T1448-电路维修 摘要:```cpp #include #include #include using namespace std; typedef int ll; char mp[1002][1002]; b…… 题解列表 2023年02月15日 0 点赞 0 评论 559 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:##解题思路 首先,了解下素数 素数是指在大于1的自然数中,除了1和它本身以外不再有其他因数的自然数。(即只有1跟它本身能整除掉这个数) 据此,我们可以想到 **遍数法**(用循环从1开始…… 题解列表 2023年02月15日 0 点赞 0 评论 414 浏览 评分:9.9
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: list1 = input().split() for i in list1: …… 题解列表 2023年02月15日 0 点赞 0 评论 638 浏览 评分:9.9
连续出现的字符 看一下题 想一下想 一遍过 这种思想要掌握 摘要:解题思路:遍历该位置后面n个字符注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; string s;//字…… 题解列表 2023年02月15日 0 点赞 0 评论 470 浏览 评分: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 评论 444 浏览 评分:9.9