每个城市有 人,要求把给出的 个城市分为 份,每份 人,每个城市投票人数为 ,使至少两个城市的票数过半(不包括刚好一半)。
2 510 500 500 670 400 310
1 2 3 6 5 4
OUTPUT DETAILS: Other solutions might be possible. Note that 「」 would NOT be a district won by the Jerseys, as they would be exactly half of the cows.
本题为 ,请暂提交到 http//acm.pku.edu.cn/JudgeOnline/problem?id=2454。 Gold