摘要: DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jewelry with pearls in it. The Royal Pearl has its name because it delivers to the royal family of Pearlania. But it also produces bracelets and necklaces for ordinary people. Of course the qu 阅读全文
posted @ 2014-02-23 10:05 chen2013 阅读(157) 评论(0) 推荐(0)
摘要: Description不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有一张钞票),为了防止自己在战斗中频繁的死掉,他决定给自己买一些道具,于是他来到了地精商店前.死亡骑士:"我要买道具!"地精商人:"我们这里有三种道具,血瓶150块一个,魔法药200块一个,无敌药水350块一个."死亡骑士:"好的,给我一个血瓶."说完他掏出那张N元的大钞递给地精商人.地精商人:"我忘了提醒你了,我们这里没有找客人钱的习惯的,多的钱我们都当小费收了的,嘿嘿."死亡骑士:"......"死亡骑士想,与 阅读全文
posted @ 2014-02-19 12:00 chen2013 阅读(514) 评论(0) 推荐(0)
摘要: DescriptionOn the planet Zoop, numbers are represented in base 62, using the digits 0, 1, . . . , 9, A, B, . . . , Z, a, b, . . . , z where A (base 62) = 10 (base 10) B (base 62) = 11 (base 10) ... z (base 62) = 61 (base 10). Given the digit representation of a number x in base 62, your goal is to d 阅读全文
posted @ 2014-02-18 19:02 chen2013 阅读(265) 评论(0) 推荐(0)
摘要: Description RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找 个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partn... 阅读全文
posted @ 2014-02-18 14:21 chen2013 阅读(248) 评论(0) 推荐(0)
摘要: DescriptionIn the game of Jack Straws, a number of plastic or wooden "straws" are dumped on the table and players try to remove them one-by-one without disturbing the other straws. Here, we are only concerned with if various pairs of straws are connected by a path of touching straws. You w 阅读全文
posted @ 2014-02-18 13:59 chen2013 阅读(267) 评论(0) 推荐(0)
摘要: Problem DescriptionFor a group of people, there is an idea that everyone is equals to or less than 6 steps away from any other person in the group, by... 阅读全文
posted @ 2014-02-17 12:58 chen2013 阅读(415) 评论(0) 推荐(0)
摘要: Problem Description Wangpeng has N clothes, M pants and K shoes so theoretically he can have N×M×K different combinations of dressing. One day he wears his pants Nike, shoes Adiwang to go to school happily. When he opens the door, his mom asks him to come back and switch the dressing. Mom 阅读全文
posted @ 2014-02-17 12:12 chen2013 阅读(274) 评论(0) 推荐(0)
摘要: Problem DescriptionThe I-number of x is defined to be an integer y, which satisfied the the conditions below:1. y>x;2. the sum of each digit of y(under base 10) is the multiple of 10;3. among all integers that satisfy the two conditions above, y shouble be the minimum.Given x, you're required 阅读全文
posted @ 2014-02-16 23:00 chen2013 阅读(214) 评论(0) 推荐(0)
摘要: Description平面上有n条直线,且无三线共点,问这些直线能有多少种不同交点数。比如,如果n=2,则可能的交点数量为0(平行)或者1(不平行)。 Input输入数据包含多个测试实例,每个测试实例占一行,每行包含一个正整数n(nint main(int argc, char *argv[]){ int dp[21][200]; for(int i=1; i=1; j--){ for(int k=0; k<=190; k++){ //设有j条边平行,那么就多出(i-j)*j个交点 if(dp[i-j][k]) dp[i][k+(i-j)*j]=1; } } }... 阅读全文
posted @ 2014-02-14 19:14 chen2013 阅读(308) 评论(1) 推荐(0)
摘要: 描述 Two companies cooperatively develop a project, but they don’t like working with one another. In order to keep the company together, they have decided that only one of them will work on each job. To keep things fair, the jobs need to be split so that both work the same amount. This is accomplished 阅读全文
posted @ 2014-02-14 16:45 chen2013 阅读(286) 评论(0) 推荐(0)