题解列表
信息学奥赛一本通T1347-格子游戏 并查集
摘要: #include
using namespace std;
const int N = 40010;
int p[N];
int n,m;
……
2818 while解法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int x,y; scanf("%d",&a); x=a; whil……
信息学奥赛一本通T1346-亲戚(relation) 并查集 此题有毒
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int MAXN = 20010;int father[MAXN];in……
[蓝桥杯2022年第十三届决赛真题-最大数字] 贪心+dfs
摘要:# 咋还给我爆long long了啊这题
```cpp
#include
#define ULL unsigned long long
#define LL long long
#def……
试图解释答案为什么是F E
摘要:解题思路:1.看题目要求,本题要求输出选项ABC,2.先判断选项所代表的数据类型,和a,b输出的数据类型,再看看题目所写的代码有没有强制类型转换,不过本题没有强制类型转换,所以可以不用考虑,3.判断题……
小小练手(自学菜鸡版)
摘要:解题思路:如下注意事项:注意左对齐,(作者用了判断语句,但其实用%2.d最好了)参考代码:#include <stdio.h>int main(){ int a,b,c; for(a =1; a<10……