摘要: Problem DescriptionJohn are playing with blocks. There are N blocks (1 2 #include 3 #include 4 using namespace std; 5 #define N 30006 6 int fa[N]; 7 ... 阅读全文
posted @ 2015-09-01 22:09 UniqueColor 阅读(225) 评论(0) 推荐(0) 编辑
摘要: DescriptionStarting with x and repeatedly multiplying by x, we can compute x31 with thirty multiplications:x2 = x × x, x3 = x2 × x, x4 = x3 × x, …, x3... 阅读全文
posted @ 2015-09-01 21:30 UniqueColor 阅读(353) 评论(0) 推荐(0) 编辑
摘要: DescriptionPeople in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there w... 阅读全文
posted @ 2015-09-01 20:28 UniqueColor 阅读(160) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standa... 阅读全文
posted @ 2015-09-01 19:14 UniqueColor 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Description"Let it Bead" company is located upstairs at 700 Cannery Row in Monterey, CA. As you can deduce from the company name, their business is be... 阅读全文
posted @ 2015-09-01 18:54 UniqueColor 阅读(220) 评论(0) 推荐(0) 编辑
摘要: DescriptionBeads of red, blue or green colors are connected together into a circular necklace of n beads ( n 2 #include 3 #include 4 #include 5 #incl... 阅读全文
posted @ 2015-09-01 18:41 UniqueColor 阅读(277) 评论(0) 推荐(0) 编辑