上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页
摘要: MatrixTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1490Accepted Submission(s): 663Problem DescriptionGive you a matrix(only contains 0 or 1),every time you can select a row or a column and delete all the '1' in this row or this column .Y 阅读全文
posted @ 2013-10-26 21:43 heaventouch 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Fire NetTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5215Accepted Submission(s): 2935Problem DescriptionSuppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a st 阅读全文
posted @ 2013-10-26 14:53 heaventouch 阅读(148) 评论(0) 推荐(0) 编辑
摘要: DollsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 914Accepted Submission(s): 433Problem DescriptionDo you remember the box of Matryoshka dolls last week? Adam just got another box of dolls from Matryona. This time, the dolls have different shape 阅读全文
posted @ 2013-10-26 11:32 heaventouch 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 统计硬币Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3230Accepted Submission(s): 2258Problem Description假设一堆由1分、2分、5分组成的n个硬币总面值为m分,求一共有多少种可能的组合方式(某种面值的硬币可以数量可以为0)。Input输入数据第一行有一个正整数T,表示有T组测试数据;接下来的T行,每行有两个数n,m,n和m的含义同上。Output对于每组测试数据,请输出可能的组合方式数;每组输 阅读全文
posted @ 2013-10-25 21:43 heaventouch 阅读(256) 评论(0) 推荐(0) 编辑
摘要: SORT AGAINTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3428Accepted Submission(s): 1088Problem Description给你N个整数,x1,x2...xn,任取两个整数组合得到|xi-xj|,(014 #include15 int ans[2005];16 int a[1005];17 int Sub(int a,int b)18 {19 if(a>b) return a-b;20 ... 阅读全文
posted @ 2013-10-24 22:32 heaventouch 阅读(248) 评论(0) 推荐(0) 编辑
摘要: A simple problemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2730Accepted Submission(s): 958Problem DescriptionZty很痴迷数学问题.。一天,yifenfei出了个数学题想难倒他,让他回答1 / n。但Zty却回答不了^_^. 请大家编程帮助他.Input第一行整数T,表示测试组数。后面T行,每行一个整数 n (113 #include14 int main(void) 15 阅读全文
posted @ 2013-10-24 22:03 heaventouch 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Ignatius and the Princess IVTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32767 K (Java/Others)Total Submission(s): 13455Accepted Submission(s): 5435Problem Description"OK, you are not too bad, em... But you can never pass the next test." feng5166 says."I will tell you an 阅读全文
posted @ 2013-10-23 17:29 heaventouch 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 过山车Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8001 Accepted Submission(s): 3509Problem DescriptionRPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可是,过山车的每一排只有两个座位,而且还有条不成文的规矩,就是每个女生必须找个个男生做partner和她同坐。但是,每个女孩都有各自的想法,举个例子把,Rabbit只愿意和XHD或PQK做partne... 阅读全文
posted @ 2013-10-22 08:10 heaventouch 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Eat the TreesTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2052 Accepted Submission(s): 998Problem DescriptionMost of us know that in the game called DotA(Defense of the Ancient), Pudge is a strong hero in the first period of the game. Whe... 阅读全文
posted @ 2013-10-21 19:15 heaventouch 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Professor TianTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 632 Accepted Submission(s): 346Problem DescriptionTimer took the Probability and Mathematical Statistics course in the 2012, But his bad attendance angered Professor Tian who is i... 阅读全文
posted @ 2013-10-19 08:46 heaventouch 阅读(143) 评论(0) 推荐(0) 编辑
摘要: LianLianKanTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2285 Accepted Submission(s): 701Problem DescriptionI like playing game with my friend, although sometimes looks pretty naive. Today I invent a new game called LianLianKan. The game i... 阅读全文
posted @ 2013-10-17 13:13 heaventouch 阅读(149) 评论(0) 推荐(0) 编辑
摘要: PebblesTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 777 Accepted Submission(s): 426Problem DescriptionYou're given an unlimited number of pebbles to distribute across an N x N game board (N drawn from [3, 15]), where each square on the bo.. 阅读全文
posted @ 2013-10-15 11:18 heaventouch 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 方格取数(1)Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3799 Accepted Submission(s): 1453Problem Description给你一个n*n的格子的棋盘,每个格子里面有一个非负数。从中取出若干个数,使得任意的两个数所在的格子没有公共边,就是说所取的数所在的2个格子不能相邻,并且取出的数的和最大。 Input包括多个测试实例,每个测试实例包括一个整数n 和n*n个非负数(n14 #inclu... 阅读全文
posted @ 2013-10-15 08:05 heaventouch 阅读(122) 评论(0) 推荐(0) 编辑
摘要: PiecesTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1390 Accepted Submission(s): 708Problem Description You heart broke into pieces.My string broke into pieces.But you will recover one day,and my string will never go back. Given a string... 阅读全文
posted @ 2013-10-14 21:04 heaventouch 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Doing HomeworkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4228 Accepted Submission(s): 1705Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadli... 阅读全文
posted @ 2013-10-14 09:48 heaventouch 阅读(238) 评论(0) 推荐(1) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页