摘要:
E. Johnny and Grandmaster 题意: 给定n个数$P={p^ }$,将这n个数划分到两个集合中,使得这两个集合的差值最小,求最小的差值对1e9+7取模。 思路: 将n个数划分到两个集合可以转化为指定这n个数的正负性使得这n个数的和最小。 $p^$可以看成是$p$进制 阅读全文
摘要:
D. Problem D. Fractionstellar Your parents decided that it would be “fun” to spend the entire Sunday walking near the Mookerheide close to Nijmegen. A 阅读全文