
贪心
hanker99
这个作者很懒,什么都没留下…
展开
-
CSU-2007 Football Training Camp
Football Training Camp 在一次足球联合训练中一共有n支队伍相互进行了若干场比赛。 对于每场比赛,赢了的队伍得3分,输了的队伍不得分,如果为平局则两支队伍各得1分。 Input 输入包含不超过1000组数据。 每组数据的第一行为一个整数n(2 ≤ n ≤ 20),第二行为n个整数s1, s2, …, sn(0 ≤ si ≤ 200, 1 ≤ i ≤ n),即各个队伍目前的得...原创 2019-03-11 20:21:46 · 360 阅读 · 0 评论 -
Two Merged Sequences CodeForces - 1144G
Two Merged Sequences Two integer sequences existed initially, one of them wasstrictlyincreasing, and another one —strictlydecreasing. Strictly increasing sequence is a sequence of integers[x1&...原创 2019-04-14 21:45:34 · 195 阅读 · 0 评论 -
codeforces1165E Two Arrays and Sum of Functions
https://codeforces.com/contest/1165/problem/E You are given two arraysaaandbb, both of lengthnn. Let's define a functionf(l,r)=∑l≤i≤rai⋅bif(l,r)=∑l≤i≤rai⋅bi. Your task is to reorder the elemen...原创 2019-05-24 22:15:07 · 307 阅读 · 0 评论