01 2025 档案

摘要:A - Kevin and Arithmetic 题意 给定n个整数a1,a2,···,an,和初始化为0的整数s。将ai加到s上,若得到的s是偶数,加1分,然后s。重新排列a,使得分最大化 思路 详情见代 阅读全文
posted @ 2025-01-31 16:21 _SeiI 阅读(14) 评论(0) 推荐(0) 编辑
摘要:A - Shape Perimeter 题意 一个m×m的图章的左下角与坐标纸的左下角对齐,接下来n好,每行给出x y,将图章向右移x个单位长度,想上移y个单位长度,每次移动结束后,图章会在纸上留下一个m×m的色块。求最终纸上图形的周长(保证色块是封 阅读全文
posted @ 2025-01-24 17:12 _SeiI 阅读(12) 评论(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 阅读(52) 评论(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 阅读(9) 评论(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) 编辑

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