摘要: yzm10铺瓷砖 一天yzm10接到任务,要求用2×1大小的瓷砖,来铺2×4的地面,地面需要恰好被铺满。这对yzm10来说太容易了,于是他马上设计出了5种不同的铺法(旋转情况算不同种,如图示2、4)。紧接着yzm10便突发奇想,如果要用这种瓷砖来铺2×n的地面,有多少种铺法呢?yzm10给出了n值( 阅读全文
posted @ 2017-07-23 23:37 yzm10 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 如何统计博客园的个人博客访问量 使用过新浪博客的人都知道,新浪博客的首页有访问量统计功能,迁移到博客园之后发现博客园却没有这项功能,所幸博客园在后台管理的设置选项中有一个公告栏和设置页首页脚代码功能,使用起来非常灵活和方便。借此我们可以通过网络上提过的其他强大的插件来为获取更加详细的访问统计信息(博 阅读全文
posted @ 2017-07-23 22:23 yzm10 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Knight Tournament Hooray! Berl II, the king of Berland is making a knight tournament. The king has already sent the message to all knights in the king 阅读全文
posted @ 2017-07-23 21:25 yzm10 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Almost Union-Find I hope you know the beautiful Union-Find structure. In this problem, you're to implement something similar, but not identical. The d 阅读全文
posted @ 2017-07-23 13:50 yzm10 阅读(234) 评论(0) 推荐(0) 编辑
摘要: The kth great number Xiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can choose to write down a number, or ask Xiao Bao 阅读全文
posted @ 2017-07-23 13:17 yzm10 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Feel Good Bill is developing a new mathematical theory for human emotions. His recent investigations are dedicated to studying how good or bad days in 阅读全文
posted @ 2017-07-23 13:10 yzm10 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Fence Repair Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,0 阅读全文
posted @ 2017-07-23 12:05 yzm10 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Wireless Network An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap compu 阅读全文
posted @ 2017-07-23 11:49 yzm10 阅读(233) 评论(0) 推荐(0) 编辑