11 2024 档案

摘要:A - Daily Cookie 题意 给定长为n的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问d天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo 阅读全文
posted @ 2024-11-30 22:33 _SeiI 阅读(110) 评论(0) 推荐(0) 编辑
摘要:A - Twice 题意 给定长度为n的序列,每次选两个索引i, j,如果ai==aj并且i, j之前都没被选过,则答案加1。求答案最大值。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using names 阅读全文
posted @ 2024-11-22 19:29 _SeiI 阅读(21) 评论(0) 推荐(0) 编辑
摘要:A - 123233 题意 给个6位数,判断是否是112233。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long 阅读全文
posted @ 2024-11-16 22:32 _SeiI 阅读(111) 评论(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 阅读(141) 评论(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 阅读(259) 评论(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 阅读(18) 评论(0) 推荐(0) 编辑

more_horiz
keyboard_arrow_up dark_mode palette
选择主题
点击右上角即可分享
微信分享提示