• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
_ㄨ小男人丶
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年11月11日
Free DIY Tour
摘要: DescriptionWeiwei is a software engineer of ShiningSoft. He has just excellently fulfilled a software project with his fellow workers. His boss is so satisfied with their job that he decide to provide them a free tour around the world. It's a good chance to relax themselves. To most of them, it& 阅读全文
posted @ 2012-11-11 21:36 _ㄨ小男人丶 阅读(224) 评论(0) 推荐(0)
Pascal's Travels
摘要: Problem DescriptionAn n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimate path from the upper left corner to the lower right corner of the board. The integer in any one square dictates how large a step away from that location mu 阅读全文
posted @ 2012-11-11 14:49 _ㄨ小男人丶 阅读(133) 评论(0) 推荐(0)
2012年11月4日
Dividing
摘要: DescriptionMarsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the marbles. This would be easy if all the marbles had the same value, because then they could just split the collection in half. But unfortunately, some 阅读全文
posted @ 2012-11-04 16:42 _ㄨ小男人丶 阅读(124) 评论(0) 推荐(0)
Monkey and Banana
摘要: DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. If the monkey is clever enough, it shall be able to reach the banana by placing one block on the top 阅读全文
posted @ 2012-11-04 15:04 _ㄨ小男人丶 阅读(106) 评论(0) 推荐(0)
2012年11月3日
Humble Numbers
摘要: Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first 20 humble numbers. Write a program to find and print the nth element in this sequenceInputThe input . 阅读全文
posted @ 2012-11-03 16:03 _ㄨ小男人丶 阅读(124) 评论(0) 推荐(0)
Constructing Roads In JGShining's Kingdom
摘要: Problem DescriptionJGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are located in two parallel lines.Half of these cities are rich in resource (we call them rich cities) while the others are short of resource (we call them poor cities). Each poor city is short of 阅读全文
posted @ 2012-11-03 14:57 _ㄨ小男人丶 阅读(241) 评论(0) 推荐(0)
2012年11月1日
最大子矩阵
摘要: Problem DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or greater located within the whole array. The sum of a rectangle is the sum of all the elements in that rectangle. In this problem the sub-rectangle with the 阅读全文
posted @ 2012-11-01 14:58 _ㄨ小男人丶 阅读(141) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3