上一页 1 ··· 27 28 29 30 31
摘要: 1753:Flip Game查看提交统计提问时间限制:1000ms内存限制:65536kB描述Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other one is black and each piece is lying either it's black or white side up.Each round you flip 3 to 5 p 阅读全文
posted @ 2011-08-16 06:56 何解一直犯相同错误? 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 2509:Peter's smokes查看提交统计提问时间限制:1000ms内存限制:65536kB描述Peter hasn cigarettes. He smokes them one by one keeping all the butts.Out of k > 1(事实上吸过的烟超过>=k即可) butts he can roll a new cigarette.How many cigarettes can Peter have?输入Input is a sequence of lines. Each line contains two integer number 阅读全文
posted @ 2011-08-16 06:55 何解一直犯相同错误? 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1094:Sorting It All Out查看提交统计提问时间限制: 1000ms内存限制: 65536kB描述An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D implies that A < B, B < C and C < D 阅读全文
posted @ 2011-08-16 06:52 何解一直犯相同错误? 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1258:Agri-Net查看提交统计提问时间限制:1000ms内存限制:65536kB描述Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high speed connection for his farm and is going to share his con 阅读全文
posted @ 2011-08-16 06:51 何解一直犯相同错误? 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 1258:Agri-Net查看提交统计提问时间限制:1000ms内存限制:65536kB描述Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high speed connection for his farm and is going to share his con 阅读全文
posted @ 2011-08-16 06:50 何解一直犯相同错误? 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 2790:迷宫查看提交统计提问时间限制:3000ms内存限制:65536kB描述一天Extense在森林里探险的时候不小心走入了一个迷宫,迷宫可以看成是由n * n的格点组成,每个格点只有2种状态,.和#,前者表示可以通行后者表示不能通行。同时当Extense处在某个格点时,他只能移动到东南西北(或者说上下左右)四个方向之一的相邻格点上,Extense想要从点A走到点B,问在不走出迷宫的情况下能不能办到。如果起点或者终点有一个不能通行(为#),则看成无法办到。输入第1行是测试数据的组数k,后面跟着k组输入。每组测试数据的第1行是一个正整数n(1 <= n <= 100),表示迷宫的 阅读全文
posted @ 2011-08-16 06:50 何解一直犯相同错误? 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1256:Anagram查看提交统计提问时间限制: 1000ms内存限制: 65536kB描述You are to write aprogram that has to generate all possible words from a given set of letters. Example: Given the word "abc", your program should - by exploring alldifferent combination of the three letters - output the words "abc",& 阅读全文
posted @ 2011-08-16 04:53 何解一直犯相同错误? 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1041:John's trip查看提交统计提问时间限制:1000ms内存限制:65536kB描述Little Johnny has got a new car. He decided to drive around the town to visit his friends. Johnny wanted to visit all his friends, but there was many of them. In each street he had one friend. He started thinking how to make his trip as short as p 阅读全文
posted @ 2011-08-15 07:10 何解一直犯相同错误? 阅读(389) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31