11 2024 档案
摘要:A - Daily Cookie 题意 给定长为 的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问 天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo
阅读全文
摘要:A - Twice 题意 给定长度为 的序列,每次选两个索引 ,如果 并且 之前都没被选过,则答案加 。求答案最大值。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using names
阅读全文
摘要: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
阅读全文