摘要: Sliding WindowTime Limit: 12000MSMemory Limit: 65536KTotal Submissions: 33094Accepted: 9831Case Time Limit: 5000MSDescriptionAn array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers 阅读全文
posted @ 2013-10-13 21:47 heaventouch 阅读(123) 评论(0) 推荐(0) 编辑
摘要: DNA SortingTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 76039Accepted: 30490DescriptionOne 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 letter sequence ``DAABEC'', this m 阅读全文
posted @ 2013-10-13 17:22 heaventouch 阅读(108) 评论(0) 推荐(0) 编辑
摘要: RobberiesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8527 Accepted Submission(s): 3224Problem DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often bec... 阅读全文
posted @ 2013-10-13 08:30 heaventouch 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Palindrome subsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65535 K (Java/Others)Total Submission(s): 1836 Accepted Submission(s): 770Problem DescriptionIn mathematics, a subsequence is a sequence that can be derived from another sequence by deleting some elements without... 阅读全文
posted @ 2013-10-12 22:29 heaventouch 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Play GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 317 Accepted Submission(s): 196Problem DescriptionAlice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take t... 阅读全文
posted @ 2013-10-12 20:05 heaventouch 阅读(143) 评论(0) 推荐(0) 编辑
摘要: You Are the OneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1217 Accepted Submission(s): 572Problem Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold... 阅读全文
posted @ 2013-10-12 09:39 heaventouch 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Starship TroopersTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8461 Accepted Submission(s): 2360Problem DescriptionYou, the leader of Starship Troopers, are sent to destroy a base of the bugs. The base is built underground. It is actually... 阅读全文
posted @ 2013-10-10 17:30 heaventouch 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Anniversary partyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3590 Accepted Submission(s): 1666Problem DescriptionThere is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchi... 阅读全文
posted @ 2013-10-09 22:04 heaventouch 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Party at Hali-BulaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1351 Accepted Submission(s): 447Problem DescriptionDear Contestant,I'm going to have a party at my villa at Hali-Bula to celebrate my retirement from BCM. I wish I could invit.. 阅读全文
posted @ 2013-10-09 12:03 heaventouch 阅读(196) 评论(0) 推荐(0) 编辑
摘要: The Ghost Blows LightTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1845 Accepted Submission(s): 562Problem DescriptionMy name is Hu Bayi, robing an ancient tomb in Tibet. The tomb consists of N rooms (numbered from 1 to N) which are connec... 阅读全文
posted @ 2013-10-08 11:18 heaventouch 阅读(186) 评论(0) 推荐(0) 编辑
摘要: ComputerTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2361 Accepted Submission(s): 1207Problem DescriptionA school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new compu.. 阅读全文
posted @ 2013-10-07 10:21 heaventouch 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Find Metal MineralTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 1986 Accepted Submission(s): 900Problem DescriptionHumans have discovered a kind of new metal mineral on Mars which are distributed in point‐like with paths connecting each of... 阅读全文
posted @ 2013-10-06 19:58 heaventouch 阅读(104) 评论(0) 推荐(0) 编辑
摘要: K-th Nya NumberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 125536/65536 K (Java/Others)Total Submission(s): 1619 Accepted Submission(s): 523Problem DescriptionArcueid likes nya number very much.A nya number is the number which has exactly X fours and Y sevens(If X=2 and Y=3 , 17244127... 阅读全文
posted @ 2013-10-06 10:47 heaventouch 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Balanced NumberTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1351 Accepted Submission(s): 589Problem DescriptionA balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagin... 阅读全文
posted @ 2013-10-05 20:54 heaventouch 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19406 Accepted Submission(s): 6787Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer Colle.. 阅读全文
posted @ 2013-10-05 19:20 heaventouch 阅读(94) 评论(0) 推荐(0) 编辑