Loading

随笔分类 -  AtCoder

摘要:A - Not Found 题意 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long #define endl '\n' typedef pair<int, int> pii; con 阅读全文
posted @ 2025-05-06 21:35 _SeiI 阅读(62) 评论(0) 推荐(0)
摘要:A - CBC 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; #define int long long #define 阅读全文
posted @ 2025-04-22 22:02 _SeiI 阅读(72) 评论(0) 推荐(0)
摘要:A - Status Code 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; #define int long long 阅读全文
posted @ 2025-04-16 20:36 _SeiI 阅读(53) 评论(0) 推荐(0)
摘要:A - ABC400 Party 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_map> #include<unordered_set> using namespace std; #define int long long 阅读全文
posted @ 2025-04-07 09:29 _SeiI 阅读(75) 评论(0) 推荐(0)
摘要:A - Hamming Distance 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int long 阅读全文
posted @ 2025-03-31 09:39 _SeiI 阅读(50) 评论(0) 推荐(0)
摘要:A - Thermometer 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int long long 阅读全文
posted @ 2025-03-16 22:02 _SeiI 阅读(80) 评论(0) 推荐(1)
摘要:A - Triple Four 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int long long 阅读全文
posted @ 2025-03-08 23:12 _SeiI 阅读(109) 评论(0) 推荐(0)
摘要:A - Strictly Increasing? 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int l 阅读全文
posted @ 2025-03-02 22:06 _SeiI 阅读(43) 评论(0) 推荐(0)
摘要:A - 22222 题意 给定字符串\(s\),删除所有除\(2\)的字符 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #de 阅读全文
posted @ 2025-02-25 19:49 _SeiI 阅读(39) 评论(0) 推荐(0)
摘要:A - Poisonous Oyster 题意 两个人\(A,B\)吃\(4\)种东西,\(A\)吃\(1,2\),\(B\)吃\(1,3\),给出两人状态\(fine\)或\(sick\),问哪种食物有毒 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #inclu 阅读全文
posted @ 2025-02-16 20:13 _SeiI 阅读(49) 评论(0) 推荐(0)
摘要:A - Full House 2 题意 给\(4\)个整数,问能否添加一个整数使得恰有\(3\)个整数\(a\)和\(2\)个整数\(b\) 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long 阅读全文
posted @ 2025-01-24 17:05 _SeiI 阅读(57) 评论(0) 推荐(0)
摘要:A - 9x9 题意 一位数的乘法 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> pii; const int mxn = 1e6 阅读全文
posted @ 2025-01-19 17:04 _SeiI 阅读(75) 评论(0) 推荐(0)
摘要:A - A - ?UPC 题意 给定字符串\(s\),输出\(s\)首个字符与\(UPC\)组成的字符串 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair< 阅读全文
posted @ 2025-01-18 13:28 _SeiI 阅读(42) 评论(0) 推荐(0)
摘要:A - Happy New Year 2025 题意 给定正整数\(A,B\),求\((A+B)^2\) 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long long typedef pair< 阅读全文
posted @ 2025-01-11 13:13 _SeiI 阅读(95) 评论(0) 推荐(0)
摘要:A - aaaadaa 题意 给定长为\(n\)的字符串\(s\),和两个字符\(c_1\)、\(c_2\),把\(s\)中不是\(c_1\)的字符替换成$ c_2$ 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #def 阅读全文
posted @ 2024-12-14 23:00 _SeiI 阅读(67) 评论(0) 推荐(0)
摘要:A - Daily Cookie 题意 给定长为\(n\)的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问\(d\)天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo 阅读全文
posted @ 2024-11-30 22:33 _SeiI 阅读(144) 评论(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 阅读(135) 评论(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 阅读(165) 评论(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 阅读(287) 评论(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 阅读(46) 评论(0) 推荐(0)