摘要: CF 1114 A. Got Any Grapes? skip B. Yet Another Array Partitioning Task 将n个数分成连续的k组,使得每组的前m大的数字的总和最大。 首先可以想到肯定可以包含n个数中前 m k 大的数。所以可以先将他们标记,然后扫一遍确定每组的端点 阅读全文
posted @ 2019-02-11 19:19 长安大学ACM 阅读(140) 评论(0) 推荐(0) 编辑
摘要: CF 1093 "1093A Dice Rolling" 输出x/2即可 c++ include using namespace std; int main() { int t; cin t; while (t ) { int x; cin x; cout using namespace std; 阅读全文
posted @ 2019-02-11 18:17 长安大学ACM 阅读(96) 评论(0) 推荐(0) 编辑