水题集合
普通网友
这个作者很懒,什么都没留下…
展开
-
POJ 3740
Easy FindingDescriptionGiven a M×N matrix A. Aij ∈ {0, 1} (0 ≤ i InputThere are multiple cases ended by EOF. Test case up to 500.The first line of input is M, N (M ≤ 16, N ≤ 300). The next M l原创 2014-04-30 18:39:24 · 452 阅读 · 0 评论 -
Codeforces 414A
1 #include 2 #include 3 #include 4 using namespace std; 5 int main(){ 6 int n,k; 7 while(~scanf("%d%d",&n,&k)){ 8 if(n == 1 && k > 0 || k 2) printf("-1\n"); 9原创 2014-04-30 18:38:53 · 469 阅读 · 0 评论 -
HDOJ 1087
Super Jumping! Jumping! Jumping!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19996 Accepted Submission(s): 8679Problem DescriptionNo原创 2014-04-30 18:38:34 · 401 阅读 · 0 评论 -
HDOJ 1159
Common SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20815 Accepted Submission(s): 8954Problem DescriptionA subsequence of原创 2014-04-30 18:38:32 · 421 阅读 · 0 评论 -
HDOJ 1160
FatMouse's SpeedTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8334 Accepted Submission(s): 3715Special JudgeProblem DescriptionFatMou原创 2014-04-30 18:38:23 · 387 阅读 · 0 评论 -
POJ 3013
Big Christmas TreeTime Limit: 3000MS Memory Limit: 131072KTotal Submissions: 20034 Accepted: 4304DescriptionChristmas is coming to KCM city. Suby the loyal civili原创 2014-04-30 18:37:45 · 399 阅读 · 0 评论 -
POJ 2823
Sliding WindowTime Limit: 12000MS Memory Limit: 65536KTotal Submissions: 35408 Accepted: 10476Case Time Limit: 5000MSDescriptionAn array of size n ≤ 106 is gi原创 2014-04-30 18:37:12 · 357 阅读 · 0 评论 -
Codeforce A. Milking cows
A. Milking cowstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub helps his grandfather at the farm. Today he must原创 2014-04-30 18:37:08 · 401 阅读 · 0 评论 -
HDOJ 1269
迷宫城堡Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5730 Accepted Submission(s): 2542Problem Description为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个原创 2014-04-30 18:36:19 · 426 阅读 · 0 评论 -
HDU 2122
Ice_cream’s world IIITime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 576 Accepted Submission(s): 185Problem Descriptionice_cream’s worl原创 2014-04-30 18:35:50 · 413 阅读 · 0 评论 -
HDU 2682
TreeTime Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1533 Accepted Submission(s): 433Problem DescriptionThere are N (2Now we want to con原创 2014-04-30 18:35:43 · 369 阅读 · 0 评论 -
HDU 1312
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6865 Accepted Submission(s): 4359Problem DescriptionThere is a rectangular原创 2014-04-30 18:35:16 · 365 阅读 · 0 评论 -
HDU 1878
欧拉回路Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 2Font: Times New Roman | Verdana | GeorgiaFont Size: ← →原创 2014-04-30 18:34:36 · 355 阅读 · 0 评论 -
HDU 2049
不容易系列之(4)——考新郎Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 3 Accepted Submission(s) : 1Font: Times New Roman | Verdana | GeorgiaFont原创 2014-04-30 18:34:32 · 402 阅读 · 0 评论 -
Codeforces 242(DIV 2) C题
C. Magic Formulastime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPeople in the Tomskaya region like magic formulas v原创 2014-04-30 18:39:47 · 438 阅读 · 0 评论 -
POJ 3842
An Industrial Spy DescriptionIndustrial spying is very common for modern research labs. I am such an industrial spy - don't tell anybody! My recent job was to steal the latest inventions from a原创 2014-04-30 18:39:35 · 584 阅读 · 0 评论 -
HDOJ 1176
免费馅饼Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22895 Accepted Submission(s): 7708Problem Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上原创 2014-04-30 18:38:30 · 368 阅读 · 0 评论 -
POJ 1164
放苹果 Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 24947 Accepted: 15887Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1原创 2014-04-30 18:38:15 · 518 阅读 · 0 评论 -
POJ 1144
A - NetworkTime Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 1144DescriptionA Telephone Line Company (TLC) is establishing a new te原创 2014-04-30 18:37:26 · 393 阅读 · 0 评论 -
Codeforces 370B
Lately, a national version of a bingo game has become very popular in Berland. There are n players playing the game, each player has a card with numbers. The numbers on each card are distinct, but dis原创 2014-04-30 18:36:24 · 397 阅读 · 0 评论 -
HDOJ 1874
畅通工程续Time Limit : 3000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 15 Accepted Submission(s) : 4Problem Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不原创 2014-04-30 18:35:58 · 326 阅读 · 0 评论 -
HDOJ 1863
畅通工程Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13266 Accepted Submission(s): 5434Problem Description省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路原创 2014-04-30 18:35:48 · 320 阅读 · 0 评论 -
HDU 2082
找单词Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 1 Accepted Submission(s) : 1Font: Times New Roman | Verdana | GeorgiaFont Size: ← →原创 2014-04-30 18:35:10 · 395 阅读 · 0 评论 -
Codeforces 201(DIV2)B
B. Fixed Pointstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA permutation of length n is an integer sequence such原创 2014-04-30 18:34:59 · 390 阅读 · 0 评论 -
HDU 2546
饭卡Time Limit : 5000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 6 Accepted Submission(s) : 2Font: Times New Roman | Verdana | GeorgiaFont Size: ← →P原创 2014-04-30 18:34:41 · 567 阅读 · 0 评论 -
HDU 1030
Delta-waveTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4602 Accepted Submission(s): 1745Problem DescriptionA triangle field is numbe原创 2014-04-30 18:34:28 · 391 阅读 · 0 评论 -
POJ 2249
Binomial ShowdownTimeLimit: 1 Second MemoryLimit: 32 MegabyteTotalsubmit: 2323 Accepted: 572 DescriptionIn how many ways can you choose k elements out of n elements, not taking order原创 2014-04-30 18:34:20 · 346 阅读 · 0 评论 -
POJ 2387
Til the Cows Come HomeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 27591 Accepted: 9303DescriptionBessie is out in the field and wants to get back to t原创 2014-04-30 18:39:53 · 480 阅读 · 0 评论 -
POJ 2002
1 #include 2 #include 3 #include 4 #includestring> 5 #include 6 #define MAXN 1111 7 using namespace std; 8 class Point{ 9 public:10 int x,y;11 bool operator con原创 2014-04-30 18:39:05 · 465 阅读 · 0 评论 -
HDOJ 2084
数塔Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19305 Accepted Submission(s): 11549Problem Description在讲述DP算法的时候,一个经典的例子就是数塔问题,它是这样描述原创 2014-04-30 18:38:19 · 379 阅读 · 0 评论 -
HDOJ 2151
WormTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2584 Accepted Submission(s): 1667Problem Description自从见识了平安夜苹果的涨价后,Lele就在他家门口水平种了一排原创 2014-04-30 18:38:17 · 409 阅读 · 0 评论 -
POJ 3255
RoadblocksTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 6459 Accepted: 2406DescriptionBessie has moved to a small farm and sometimes enjoys returning原创 2014-04-30 18:38:09 · 385 阅读 · 0 评论 -
POJ 2570
Fiber NetworkTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2896 Accepted: 1335DescriptionSeveral startup companies have decided to build a better Intern原创 2014-04-30 18:37:47 · 577 阅读 · 0 评论 -
Codeforces 115A
A. Partytime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA company has n employees numbered from 1 to n. Each employe原创 2014-04-30 18:37:24 · 560 阅读 · 0 评论 -
POJ 1273
Drainage DitchesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 52402 Accepted: 19946DescriptionEvery time it rains on Farmer John's fields, a pond forms原创 2014-04-30 18:37:05 · 386 阅读 · 0 评论 -
HDOJ 1269(Tarjan)
迷宫城堡Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5732 Accepted Submission(s): 2543Problem Description为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个原创 2014-04-30 18:36:21 · 392 阅读 · 0 评论 -
HDOJ 1166
敌兵布阵Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 66 Accepted Submission(s) : 40Font: Times New Roman | Verdana | GeorgiaFont Size: ←原创 2014-04-30 18:36:07 · 343 阅读 · 0 评论 -
HDU 1978
How many waysTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2121 Accepted Submission(s): 1279Problem Description这是一个简单的生存游戏,你控制一个机器人从一原创 2014-04-30 18:35:22 · 332 阅读 · 0 评论 -
HDU 1097
A hard puzzleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24658 Accepted Submission(s): 8778Problem Descriptionlcy gives a hard pu原创 2014-04-30 18:34:38 · 401 阅读 · 0 评论 -
HDU 1953
RelativesTimeLimit: 1 Second MemoryLimit: 32 MegabyteTotalsubmit: 1566 Accepted: 513 DescriptionGiven n, a positive integer, how many positive integers less than n are relatively prim原创 2014-04-30 18:34:13 · 496 阅读 · 0 评论