摘要: The city planners plan to build N plants in the city which has M shops. Each shop needs products from some plants to make profit of proiproi units. Bu 阅读全文
posted @ 2017-08-25 10:41 joeylee97 阅读(139) 评论(0) 推荐(0) 编辑
摘要: The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral posters at all pl 阅读全文
posted @ 2017-08-25 10:35 joeylee97 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star 阅读全文
posted @ 2017-08-25 10:33 joeylee97 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 百度科技园内有nn个零食机,零食机之间通过n−1n−1条路相互连通。每个零食机都有一个值vv,表示为小度熊提供零食的价值。 由于零食被频繁的消耗和补充,零食机的价值vv会时常发生变化。小度熊只能从编号为0的零食机出发,并且每个零食机至多经过一次。另外,小度熊会对某个零食机的零食有所偏爱,要求路线上必 阅读全文
posted @ 2017-08-25 10:14 joeylee97 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 我们称一个长度为2n的数列是有趣的,当且仅当该数列满足以下三个条件: (1)它是从1到2n共2n个整数的一个排列{ai}; (2)所有的奇数项满足a1<a3<…<a2n-1,所有的偶数项满足a2<a4<…<a2n; (3)任意相邻的两项a2i-1与a2i(1≤i≤n)满足奇数项小于偶数项,即:a2i 阅读全文
posted @ 2017-08-25 10:10 joeylee97 阅读(946) 评论(0) 推荐(0) 编辑
摘要: Devu wants to decorate his garden with flowers. He has purchased n boxes, where the i-th box contains fi flowers. All flowers in a single box are of t 阅读全文
posted @ 2017-08-25 10:07 joeylee97 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 任何正整数都能分解成2的幂,给定整数N,求N的此类划分方法的数量!由于方案数量较大,输出Mod 1000000007的结果。 比如N = 7时,共有6种划分方法。 7=1+1+1+1+1+1+1 =1+1+1+1+1+2 =1+1+1+2+2 =1+2+2+2 =1+1+1+4 =1+2+4 Inp 阅读全文
posted @ 2017-08-25 10:05 joeylee97 阅读(573) 评论(0) 推荐(0) 编辑