随笔分类 - AtCoder
摘要: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 题意 给定字符串 ,删除所有除 的字符 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #de
阅读全文
摘要:A - Poisonous Oyster 题意 两个人 吃 种东西, 吃 , 吃 ,给出两人状态 或 ,问哪种食物有毒 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #inclu
阅读全文
摘要:A - Full House 2 题意 给 个整数,问能否添加一个整数使得恰有 个整数 和 个整数 思路 模拟 代码 点击查看代码 #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 题意 给定字符串 ,输出 首个字符与 组成的字符串 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair<
阅读全文
摘要:A - Happy New Year 2025 题意 给定正整数 ,求 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair<
阅读全文
摘要:A - aaaadaa 题意 给定长为 的字符串 ,和两个字符 、 ,把 中不是 的字符替换成 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #def
阅读全文
摘要:A - Daily Cookie 题意 给定长为 的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问 天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo
阅读全文
摘要:A - 123233 题意 给个 位数,判断是否是 个 , 个 , 个 。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long
阅读全文
摘要:A - Cyclic 题意 输入 个连续字符 ,输出另外两种顺序。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, in
阅读全文
摘要:A - Pairing 题意 给 个数,每次选两个数字相同的丢掉。求最大操作数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int
阅读全文
摘要:A - Rearranging ABC 题意 给长度为 的字符串问是不是 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int
阅读全文
摘要:A - Candy Button 题意 按一次按钮得到一块糖,条件是这次按按钮的时间间隔上次得到糖的时间 。现在按 次按钮,已知第 次按按钮时间为 ,求得到的糖果数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> usi
阅读全文
摘要:A - September 题意 给 个字符串,问长度等于标号的字符串个数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int ans
阅读全文
摘要:A - Cut 题意 签到题 思路 代码 #include <bits/stdc++.h> using namespace std; void solve() { int n, k; scanf("%d%d", &n, &k); vector<int> v(n); for (int i = 0; i
阅读全文