Loading

11 2024 档案

摘要:A - Daily Cookie 题意 给定长为\(n\)的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问\(d\)天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo 阅读全文
posted @ 2024-11-30 22:33 _SeiI 阅读(147) 评论(0) 推荐(0)
摘要:A - Twice 题意 给定长度为\(n\)的序列,每次选两个索引\(i,\ j\),如果\(a_i == a_j\)并且\(i,\ j\)之前都没被选过,则答案加\(1\)。求答案最大值。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using names 阅读全文
posted @ 2024-11-22 19:29 _SeiI 阅读(55) 评论(0) 推荐(0)
摘要:A - 123233 题意 给个\(6\)位数,判断是否是\(1\)个\(1\),\(2\)个\(2\),\(3\)个\(3\)。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long 阅读全文
posted @ 2024-11-16 22:32 _SeiI 阅读(136) 评论(0) 推荐(0)
摘要:A - Cyclic 题意 输入\(3\)个连续字符\(a,b,c\),输出另外两种顺序。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, in 阅读全文
posted @ 2024-11-09 23:39 _SeiI 阅读(169) 评论(0) 推荐(0)
摘要:A - Pairing 题意 给\(4\)个数,每次选两个数字相同的丢掉。求最大操作数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int 阅读全文
posted @ 2024-11-02 21:45 _SeiI 阅读(290) 评论(2) 推荐(1)
摘要:A - Rearranging ABC 题意 给长度为\(3\)的字符串问是不是\(ABC\) 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int 阅读全文
posted @ 2024-11-01 21:22 _SeiI 阅读(49) 评论(0) 推荐(0)