摘要: Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放 阅读全文
posted @ 2016-08-30 16:14 波函数崩塌者 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From 阅读全文
posted @ 2016-08-30 16:11 波函数崩塌者 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Description lily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。 Description lily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里 阅读全文
posted @ 2016-08-30 15:59 波函数崩塌者 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description 给你两个集合,要求{A} + {B}. 注:同一个集合中不会有两个相同的元素. Description 给你两个集合,要求{A} + {B}. 注:同一个集合中不会有两个相同的元素. 给你两个集合,要求{A} + {B}. 注:同一个集合中不会有两个相同的元素. Input 阅读全文
posted @ 2016-08-30 15:57 波函数崩塌者 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the 阅读全文
posted @ 2016-08-30 15:55 波函数崩塌者 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Description Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or 阅读全文
posted @ 2016-08-30 15:52 波函数崩塌者 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Description A queue is a data structure based on the principle of 'First In First Out' (FIFO). There are two ends; one end can be used only to insert 阅读全文
posted @ 2016-08-30 15:49 波函数崩塌者 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Standard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features is to use tw 阅读全文
posted @ 2016-08-30 15:47 波函数崩塌者 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Description Rock-Paper-Scissors is game for two players, A and B, who each choose, independently of the other, one of rock, paper, or scissors. A play 阅读全文
posted @ 2016-08-30 15:44 波函数崩塌者 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him 阅读全文
posted @ 2016-08-30 15:41 波函数崩塌者 阅读(117) 评论(0) 推荐(0) 编辑