摘要: Description The Shuseki Islands are an archipelago of 30001 small islands in the Yutampo Sea. The islands are evenly spaced along a line, numbered fro 阅读全文
posted @ 2017-10-09 22:25 NaVi_Awson 阅读(458) 评论(0) 推荐(0)
摘要: Description Bizon the Champion isn't just attentive, he also is very hardworking. Bizon the Champion decided to paint his old fence his favorite color 阅读全文
posted @ 2017-10-09 21:09 NaVi_Awson 阅读(437) 评论(0) 推荐(1)
摘要: Description 你有n种牌,第i种牌的数目为ci。另外有一种特殊的 牌:joker,它的数目是m。你可以用每种牌各一张来组成一套牌,也可以用一张joker和除了某一种牌以外的其他牌各一张组成1套牌。比如,当n=3 时,一共有4种合法的套牌:{1,2,3}, {J,2,3}, {1,J,3}, 阅读全文
posted @ 2017-10-09 17:11 NaVi_Awson 阅读(324) 评论(0) 推荐(0)
摘要: Description 考虑带权的有向图$G=(V,E)$以及$w:E\rightarrow R$,每条边$e=(i,j)(i\neq j,i\in V,j\in V)$的权值定义为$w_{i,j}$,令$n=|V|$。$c=(c_1,c_2,\cdots,c_k)(c_i\in V)$是$G$中的 阅读全文
posted @ 2017-10-09 16:09 NaVi_Awson 阅读(388) 评论(0) 推荐(0)
摘要: Description lxhgww最近接到了一个生成字符串的任务,任务需要他把n个1和m个0组成字符串,但是任务还要求在组成的字符串中,在任意的前k个字符中,1的个数不能少于0的个数。现在lxhgww想要知道满足要求的字符串共有多少个,聪明的程序员们,你们能帮助他吗? Input 输入数据是一行, 阅读全文
posted @ 2017-10-09 14:58 NaVi_Awson 阅读(190) 评论(0) 推荐(0)