- 博客(75)
- 资源 (1)
- 收藏
- 关注
原创 poj 3160 Father Christmas flymouse
Father Christmas flymouseTime Limit: 1000MS Memory Limit: 131072KTotal Submissions: 2156 Accepted: 728DescriptionAfter retirement as contestant from WHU ACM Team,
2013-08-07 22:07:13
1049
原创 poj 2762 Going from u to v or from v to u?
Going from u to v or from v to u?Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12692 Accepted: 3271DescriptionIn order to make their sons brave, Jiaji
2013-08-07 13:31:24
990
原创 hdu 1823 Luck and Love
Luck and LoveTime Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4333 Accepted Submission(s): 1085Problem Description世界上上最远的距离不是
2013-08-05 12:14:14
1219
原创 hdu 2665 Kth number
Kth numberTime Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3329 Accepted Submission(s): 1107Problem DescriptionGive you a sequenc
2013-08-03 00:55:03
856
原创 LightOJ 1193 Dice (II)
1193 - Dice (II)PDF (English)StatisticsForumTime Limit: 3 second(s)Memory Limit: 32 MBYou have N dices; each of them has K faces numbered from 1 to K. N
2013-05-27 11:20:40
1379
原创 nbu 2414 Please help the poor donkey!
Please help the poor donkey!Time Limit : 1000 MS | Memory Limit : 65536 KBSubmits : 27 | Solved : 3DescriptionA donkey is on his way home with many goods hanging on the two side
2013-05-25 19:44:37
811
原创 hdu 2809 God of War
God of WarTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1024 Accepted Submission(s): 377Problem DescriptionAt 184~280 A
2013-05-25 16:14:48
1196
原创 poj 1185 炮兵阵地
炮兵阵地Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14881 Accepted: 5580Description司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能
2013-05-25 10:17:21
2565
1
原创 金山西山居初赛第四场
http://acm.hdu.edu.cn/showproblem.php?pid=4554hdu4554 叛逆的小明Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 77 Accepted Submission(s
2013-05-20 00:21:56
1608
原创 金山西山居初赛第三场
http://acm.hdu.edu.cn/showproblem.php?pid=4551hdu4551 生日猜猜猜Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 224 Accepted Submissio
2013-05-19 00:07:11
2114
原创 hdu 3221 Brute-force Algorithm
Brute-force AlgorithmTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1825 Accepted Submission(s): 444Problem DescriptionP
2013-05-18 15:39:44
806
原创 金山西山居初赛第二场
http://acm.hdu.edu.cn/showproblem.php?pid=4548hdu4548 美素数Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 0 Accepted Submission(
2013-05-18 15:24:58
1252
原创 金山西山居初赛第一场
http://acm.hdu.edu.cn/showproblem.php?pid=4545hdu 4545 魔法串Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 237 Accepted Submission(s): 9
2013-05-18 00:40:43
956
原创 zoj 3705 Applications
ApplicationsTime Limit: 2 Seconds Memory Limit: 65536 KB Recently, the ACM/ICPC team of Marjar University decided to choose some new members from freshmen to take part in the ACM/ICPC c
2013-05-12 00:32:53
1293
原创 zoj 3601 Unrequited Love
Unrequited LoveTime Limit: 16 Seconds Memory Limit: 131072 KB There are n single boys and m single girls. Each of them may love none, one or several of other people unrequitedly and one
2013-05-08 20:16:38
932
原创 zoj 2682 People like People
People like PeopleTime Limit: 2 Seconds Memory Limit: 65536 KB The students in Kim��s class did a popularity vote to determine who were popular in the class. Each student was asked to w
2013-05-06 21:11:23
672
原创 zoj 2684 ChonSu
ChonSuTime Limit: 2 Seconds Memory Limit: 65536 KB The genealogy of a family can be represented as a rooted tree, in which each node corresponds to a member of the family, and each edge
2013-05-06 20:47:16
676
原创 zoj 2838 Utopia
UtopiaTime Limit: 5 Seconds Memory Limit: 32768 KB Few people know a secret nation in the world named Utopia. But I have been there before, where there are many beautiful villages. Seei
2013-05-05 20:40:45
1071
原创 hdu 1545 01-K Code
01-K CodeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 406 Accepted Submission(s): 96Problem DescriptionConsider a code str
2013-05-05 10:56:07
1606
原创 UVA 1162 Transcript
Transcript A company wants to hire a new employee. The selection process consists of several attention tests, one of them consists in: each candidate must type each character he sees in a flashing
2013-05-04 19:19:16
711
原创 FZU 2113 Jason的特殊爱好
Problem 2113 Jason的特殊爱好 Accept: 87 Submit: 300Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionJason很喜欢数字,特别是1这个数字,因为他觉得1有特殊的含义。为了让更多的人喜欢上1,他决定出一题关于1的水题(每个人都喜
2013-05-02 21:06:36
1043
原创 UESTC 1307 windy数
windy数Time Limit: 1000 ms Memory Limit: 65536 kB Solved: 101 Tried: 698SubmitStatusBest SolutionBackDescriptionwindy定义了一种windy数。不含前导零且相邻两个数字之差至少为2
2013-04-28 18:13:48
1112
1
原创 hdu 3555 Bomb
BombTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 3299 Accepted Submission(s): 1168Problem DescriptionThe counter-terroris
2013-04-28 16:38:21
792
原创 codeforces 55D Beautiful numbers
D. Beautiful numberstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVolodya is an odd boy and his taste is
2013-04-28 12:39:34
1512
原创 FZU 2019 Mountain Number
Problem 2109 Mountain NumberAccept: 49 Submit: 120Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionOne integer number x is called "Mountain Number" if:(1) x
2013-04-27 14:54:59
794
原创 KMP 模式匹配
KMP算法:一种用于字符串匹配的算法,精髓之处在于求next数组模式串abcdabdac下标123456789next数组000012010#include#includeconst int N=75002;char
2013-04-26 00:25:01
611
原创 POJ 2774 Long Long Message
Long Long MessageTime Limit: 4000MS Memory Limit: 131072KTotal Submissions: 17160 Accepted: 6967Case Time Limit: 1000MSDescription
2013-04-25 23:43:17
657
原创 Light OJ Substring Frequency (II)
1427 - Substring Frequency (II)PDF (English)StatisticsForumTime Limit: 5 second(s)Memory Limit: 128 MBA string is a finite sequence of sym
2013-04-25 23:26:35
802
原创 URAL 1684 Jack's Last Word
1684. Jack's Last WordTime Limit: 0.5 secondMemory Limit: 64 MBNot long ago Jack read on a fence a word that was new and amusing for him. Jack liked it so much that he wanted to invent anoth
2013-04-25 23:08:04
766
原创 zoj 3642 Just Another Information Sharing Problem
Just Another Information Sharing ProblemTime Limit: 2 Seconds Memory Limit: 65536 KBThere is going to be another test in the kindergarten. Again the teacher has already told every kid som
2013-04-24 00:17:06
683
原创 zoj 3641 Information Sharing
Information SharingTime Limit: 3 Seconds Memory Limit: 65536 KBThere is going to be a test in the kindergarten. Since the kids would cry if they get a low score in the test, the teacher h
2013-04-24 00:10:25
653
原创 codeforces236B Easy Number Challenge
B. Easy Number Challengetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's denote d(n) as the number of
2013-04-23 11:12:20
746
原创 编程之美2013 资格赛第二题 长方形
长方形时间限制: 1000ms 内存限制: 256MB描述在 N 条水平线与 M 条竖直线构成的网格中,放 K 枚石子,每个石子都只能放在网格的交叉点上。问在最优的摆放方式下,最多能找到多少四边平行于坐标轴的长方形,它的四个角上都恰好放着一枚石子。输入输入文件包含多组测试数据。第一行,给出一个整数T,为数据组数。接下来依次给出每组测试数据。每组数据为三个用空
2013-04-09 13:21:27
1859
原创 2013年3月23号竞赛题目一 平衡负载
平衡负载Du熊正在负责一个大型的项目,目前有K台服务器,有N个任务需要用这K台服务器来完成,所以要把这些任务分成K个部分来完成,在同上台服务器上执行的任务必须是连续的任务,每个任务有各自需要的执行时间。例如N=5,K=2,每个任务需要时间分别为5,3,1,4,7分钟,那么我们可以分成(5)(3 1 4 7)两部分,这样第一台服务器所花时间就是5分钟,而第二台机器需要花15分钟,当然
2013-04-03 12:25:42
696
原创 2013年3月30日竞赛题目二 Sigma
SigmaTime Limit : 2000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Problem Description小H是一个程序员。他很喜欢做各种各样的数学题,尤其喜欢做《水泥数学》。在看了《水泥数学》的2.5章后,小H终于会用9种计算 1^2+2^2+...+n^2
2013-04-03 12:12:42
709
原创 hdu 4544 湫湫系列故事——消灭兔子
湫湫系列故事——消灭兔子Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 247 Accepted Submission(s): 91Problem Description 湫湫减肥 越减越肥!
2013-03-31 23:50:27
544
原创 Codeforces 35E
E. Paradetime limit per test4 secondsmemory limit per test64 megabytesinputinput.txtoutputoutput.txtNo Great Victory anniversary in Berland has ever passed with
2013-03-26 13:20:29
758
原创 AcDream 1083: 完美数
1083: 完美数Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 208 Solved: 57[Submit][Status][Web Board]Description8是中国人很喜欢的一个数字,但是如果有3的存在就变成了38。。。就不是很好了。。 你能告诉我,在[L , R] 的正整数区间内,要么包含3 要么包含 8
2013-03-23 16:13:28
731
转载 数据读入加速
//适用于正整数template inline void scan_d(T &ret) { char c; ret=0; while((c=getchar())'9'); while(c>='0'&&c<='9') ret=ret*10+(c-'0'),c=getchar();}//适用于正负整数template inline bool scan_d(T &ret) {
2013-03-12 11:12:02
691
原创 codeforces 150C Smart Cheater
C. Smart Cheatertime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputI guess there's not much point in remindin
2013-03-12 10:33:39
1041
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人