摘要:
A - Strictly Increasing? 题意 思路 模拟 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #define int l 阅读全文
摘要:
A - Was there an Array? 题意 思路 有“\(101\)”就无解 代码 点击查看代码 #include<bits/stdc++.h> #include<unordered_set> #include<unordered_map> using namespace std; #de 阅读全文
摘要:
A - Milya and Two Arrays 题意 给定\(2\)葛长度为\(n\)的数组\(a,b\),这\(2\)个数组中的每个元素至少出现了\(2\)次。将两个数组重新组成一个长度为\(n\)的数组\(c\),其中\(c_i=a_i+b_i\)。问能否通过重新排列\(a,b\)使得\(c\ 阅读全文
摘要:
A - Kevin and Arithmetic 题意 给定\(n\)个整数\(a_1,a_2,···,a_n\),和初始化为\(0\)的整数\(s\)。将\(a_i\)加到\(s\)上,若得到的\(s\)是偶数,加\(1\)分,然后\(s%=2\)。重新排列\(a\),使得分最大化 思路 详情见代 阅读全文