随笔分类 - AtCoder
摘要:A - Not Found 题意 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long #define endl '\n' typedef pair<int, int> pii; con
阅读全文
摘要:A - CBC 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; #define int long long #define
阅读全文
摘要:A - Status Code 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; #define int long long
阅读全文
摘要:A - ABC400 Party 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; #define int long long
阅读全文
摘要:A - Hamming Distance 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int long
阅读全文
摘要:A - Thermometer 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int long long
阅读全文
摘要:A - Triple Four 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int long long
阅读全文
摘要:A - Strictly Increasing? 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int l
阅读全文
摘要:A - 22222 题意 给定字符串\(s\),删除所有除\(2\)的字符 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #de
阅读全文
摘要:A - Poisonous Oyster 题意 两个人\(A,B\)吃\(4\)种东西,\(A\)吃\(1,2\),\(B\)吃\(1,3\),给出两人状态\(fine\)或\(sick\),问哪种食物有毒 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #inclu
阅读全文
摘要:A - Full House 2 题意 给\(4\)个整数,问能否添加一个整数使得恰有\(3\)个整数\(a\)和\(2\)个整数\(b\) 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long
阅读全文
摘要:A - 9x9 题意 一位数的乘法 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> pii; const int mxn = 1e6
阅读全文
摘要:A - A - ?UPC 题意 给定字符串\(s\),输出\(s\)首个字符与\(UPC\)组成的字符串 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair<
阅读全文
摘要:A - Happy New Year 2025 题意 给定正整数\(A,B\),求\((A+B)^2\) 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair<
阅读全文
摘要:A - aaaadaa 题意 给定长为\(n\)的字符串\(s\),和两个字符\(c_1\)、\(c_2\),把\(s\)中不是\(c_1\)的字符替换成$ c_2$ 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #def
阅读全文
摘要:A - Daily Cookie 题意 给定长为\(n\)的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问\(d\)天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo
阅读全文
摘要:A - 123233 题意 给个\(6\)位数,判断是否是\(1\)个\(1\),\(2\)个\(2\),\(3\)个\(3\)。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long
阅读全文
摘要:A - Cyclic 题意 输入\(3\)个连续字符\(a,b,c\),输出另外两种顺序。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, in
阅读全文
摘要:A - Pairing 题意 给\(4\)个数,每次选两个数字相同的丢掉。求最大操作数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int
阅读全文
摘要:A - Rearranging ABC 题意 给长度为\(3\)的字符串问是不是\(ABC\) 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int
阅读全文

浙公网安备 33010602011771号