摘要: Jim is fond of reading books, and he has so many books that sometimes it's hard for him to manage them. So he is asking for your help to solve this pr 阅读全文
posted @ 2017-03-09 21:14 琴影 阅读(338) 评论(0) 推荐(0) 编辑
摘要: FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.The warehouse has N 阅读全文
posted @ 2017-03-09 20:55 琴影 阅读(271) 评论(0) 推荐(0) 编辑
摘要: In the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics. Every year, they would 阅读全文
posted @ 2017-03-09 20:35 琴影 阅读(258) 评论(0) 推荐(0) 编辑
摘要: A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a 4 阅读全文
posted @ 2017-03-09 18:34 琴影 阅读(422) 评论(0) 推荐(0) 编辑
摘要: The daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a three-digit number whose value is equal 阅读全文
posted @ 2017-03-09 18:10 琴影 阅读(370) 评论(0) 推荐(0) 编辑
摘要: One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the 阅读全文
posted @ 2017-03-09 15:20 琴影 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Tom has a meadow in his garden. He divides it into N * M squares. Initially all the squares were covered with grass. He mowed down the grass on some o 阅读全文
posted @ 2017-03-09 14:58 琴影 阅读(353) 评论(0) 推荐(0) 编辑
摘要: The image stored on a computer can be represented as a matrix of pixels. In the RGB (Red-Green-Blue) color system, a pixel can be described as a tripl 阅读全文
posted @ 2017-03-09 14:36 琴影 阅读(280) 评论(0) 推荐(0) 编辑