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