Loading

摘要: A - Shape Perimeter 题意 一个\(m×m\)的图章的左下角与坐标纸的左下角对齐,接下来\(n\)好,每行给出\(x\ y\),将图章向右移\(x\)个单位长度,想上移\(y\)个单位长度,每次移动结束后,图章会在纸上留下一个\(m×m\)的色块。求最终纸上图形的周长(保证色块是封 阅读全文
posted @ 2025-01-24 17:12 _SeiI 阅读(21) 评论(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 阅读(49) 评论(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 阅读(69) 评论(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 阅读(39) 评论(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 阅读(90) 评论(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 阅读(59) 评论(0) 推荐(0)
摘要: A - Daily Cookie 题意 给定长为\(n\)的串,“.”代表空,“@”代表饼干,一天吃一块饼干,问\(d\)天后有几个格子是空的。 思路 模拟。 代码 点击查看代码 #include <bits/stdc++.h> using namespace std; #define int lo 阅读全文
posted @ 2024-11-30 22:33 _SeiI 阅读(133) 评论(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 阅读(50) 评论(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 阅读(128) 评论(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 阅读(160) 评论(0) 推荐(0)