随笔分类 -  AtCoder

摘要: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 阅读(53) 评论(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 阅读(29) 评论(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 阅读(5) 评论(0) 推荐(0) 编辑
摘要:A - Poisonous Oyster 题意 两个人A,B4种东西,A1,2B1,3,给出两人状态finesick,问哪种食物有毒 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #inclu 阅读全文
posted @ 2025-02-16 20:13 _SeiI 阅读(20) 评论(0) 推荐(0) 编辑
摘要:A - Full House 2 题意 给4个整数,问能否添加一个整数使得恰有3个整数a2个整数b 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int long 阅读全文
posted @ 2025-01-24 17:05 _SeiI 阅读(5) 评论(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 阅读(53) 评论(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 阅读(10) 评论(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 阅读(50) 评论(0) 推荐(0) 编辑
摘要:A - aaaadaa 题意 给定长为n的字符串s,和两个字符c1c2,把s中不是c1的字符替换成c2 思路 模拟 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #def 阅读全文
posted @ 2024-12-14 23:00 _SeiI 阅读(42) 评论(0) 推荐(0) 编辑
摘要: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 - 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) 编辑
摘要:A - Candy Button 题意 按一次按钮得到一块糖,条件是这次按按钮的时间间隔上次得到糖的时间c。现在按n次按钮,已知第i次按按钮时间为ti,求得到的糖果数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> usi 阅读全文
posted @ 2024-10-21 20:40 _SeiI 阅读(36) 评论(0) 推荐(0) 编辑
摘要:A - September 题意 给12个字符串,问长度等于标号的字符串个数。 思路 模拟。 代码 点击查看代码 #include<bits/stdc++.h> using namespace std; #define int long long void solve() { int ans 阅读全文
posted @ 2024-09-28 22:26 _SeiI 阅读(104) 评论(0) 推荐(0) 编辑
摘要:A - Cut 题意 签到题 思路 代码 #include <bits/stdc++.h> using namespace std; void solve() { int n, k; scanf("%d%d", &n, &k); vector<int> v(n); for (int i = 0; i 阅读全文
posted @ 2024-08-28 16:13 _SeiI 阅读(39) 评论(0) 推荐(0) 编辑

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