文章分类 -  DP

摘要:ZipperTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5593Accepted Submission(s): 2039Problem DescriptionGiven three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The firs 阅读全文
posted @ 2013-11-02 13:40 heaventouch 阅读(157) 评论(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 阅读(217) 评论(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) 编辑
摘要: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) 编辑
摘要:B-numberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1654 Accepted Submission(s): 902Problem DescriptionA wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided 阅读全文
posted @ 2013-10-05 15:23 heaventouch 阅读(162) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示