题解列表
利用python循环和数列解决
摘要:注意事项:菜鸡解法,分别看需要满足的条件依次进行解题写代码来满足他参考代码:a = int(input())b = []f = []c = 0d = 0e = 0for i in range(a): ……
试图解释答案为什么是F E
摘要:解题思路:1.看题目要求,本题要求输出选项ABC,2.先判断选项所代表的数据类型,和a,b输出的数据类型,再看看题目所写的代码有没有强制类型转换,不过本题没有强制类型转换,所以可以不用考虑,3.判断题……
[蓝桥杯2022年第十三届决赛真题-最大数字] 贪心+dfs
摘要:# 咋还给我爆long long了啊这题
```cpp
#include
#define ULL unsigned long long
#define LL long long
#def……
信息学奥赛一本通T1346-亲戚(relation) 并查集 此题有毒
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int MAXN = 20010;int father[MAXN];in……
信息学奥赛一本通T1347-格子游戏 并查集
摘要: #include
using namespace std;
const int N = 40010;
int p[N];
int n,m;
……
python7行解决
摘要:解题思路:注意事项:参考代码:a = [int(i) for i in input().split()]b = int(input())c = 0for i in a: if b + 30 >=……
红与黑C++代码(程序不用回溯)
摘要:注意事项: 这个程序不用回溯,回溯过于浪费时间。参考代码:#include<bits/stdc++.h>using namespace std;int w,h,maxx;bool boo……