文章分类 - 补题
111
摘要:比赛链接 A R800 思维 思路 就是取出现次数最大的就是答案 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "YES" << endl #define
阅读全文
摘要:比赛链接‘ A 模拟 思路 直接哈希去重就行了 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "YES" << endl #define cn cout <
阅读全文
摘要:比赛链接 A 模拟 思路 直接采用哈希去重即可 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "YES" << endl #define cn cout <
阅读全文
摘要:比赛链接 E题用umap被hack了,F有个简单知识点没学,离青又远了 A 模拟 思路 3个数找只出现一次的,直接上异或 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy co
阅读全文
摘要:比赛链接 A 模拟 思路 直接模拟就行 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "YES" << endl #define cn cout << "N
阅读全文
摘要:比赛链接 A 模拟 语法 思路 遍历判断前后是否相同即可 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "YES" << endl #define cn c
阅读全文
摘要:比赛链接 A 语法 模拟 思路 几个else if 就行 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "Yes" << endl #define cn c
阅读全文
摘要:比赛链接 A 语法 01:44 思路 大小写转换 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "Yes" << endl #define cn cout
阅读全文
摘要:比赛链接 A 小学数学 思路 小学数学没什么好说的 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "Yes" << endl #define cn cout
阅读全文
摘要:比赛链接 A 小学数学 思路 瞪眼法,答案只能为1或者0,如果不能整除则答案为1 代码 #include <bits/stdc++.h> using namespace std; #define umap unordered_map #define cy cout << "Yes" << endl
阅读全文
摘要:比赛链接 A 小学数学 思路 代码 #include <bits/stdc++.h> using namespace std; int n; int main() { cin >> n; if (n % 2 != 0) n *= 2; cout << n; return 0; } B 语法题 思路
阅读全文
摘要:比赛链接 A 语法题 思路 判断一个数是否大于 999 。如果不大于,输出ABC,否则输出ABD。 代码 #include <bits/stdc++.h> using namespace std; int n; int main() { cin >> n; if (n <= 999) cout <<
阅读全文
摘要:比赛链接 A 思维 思路 一个人最多只能拿 8 块蛋糕(隔一个取一个),直接判断是不是都小于等于8即可 代码 #include <bits/stdc++.h> using namespace std; int a, b; int main() { cin >> a >> b; if (a <= 8
阅读全文

浙公网安备 33010602011771号