摘要:
1079: [SCOI2008]着色方案Description有n个木块排成一行,从左到右依次编号为1~n。你有k种颜色的油漆,其中第i种颜色的油漆足够涂ci个木块。所有油漆刚好足够涂满所有木块,即c1+c2+...+ck=n。相邻两个木块涂相同色显得很难看,所以你希望统计任意两个相邻木块颜色不同的... 阅读全文
posted @ 2016-01-07 15:22
meekyan
阅读(343)
评论(0)
推荐(1)
摘要:
Given the value of N, you will have to find the value of G. The definition of G is given below:G =i#include #include #include #include using namespace s... 阅读全文
posted @ 2016-01-07 01:24
meekyan
阅读(408)
评论(0)
推荐(0)

浙公网安备 33010602011771号