- 博客(68)
- 收藏
- 关注
原创 gcj Round 1A 2015 Haircut
Problem B. HaircutThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Guide t
2015-04-18 11:58:37
606
原创 gcj Round 1A 2015 Mushroom Monster
Problem A. Mushroom MonsterThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start
2015-04-18 11:58:06
544
原创 Codeforces Round #279 (Div. 2)
A. Team Olympiadtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe School №0 of the capital of Berland has
2014-11-23 20:42:20
663
原创 Codeforces Round #277 (Div. 2) D Valid Sets
D. Valid Setstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs you know, an undirected connected graph wit
2014-11-12 13:23:08
379
原创 hdu 5101 select
SelectTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 210 Accepted Submission(s): 61Problem DescriptionOne day, Dudu, the mos
2014-11-08 23:16:14
350
原创 hdu 5093 Battle ships 二分图匹配
Battle shipsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 52 Accepted Submission(s): 28Problem DescriptionDear contestant,
2014-11-02 18:41:33
390
原创 hdu 5090 Game with Pearls
Game with PearlsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 30 Accepted Submission(s): 29Problem DescriptionTom and Jerry
2014-11-02 18:38:20
439
原创 hdu5087 Revenge of LIS II
Revenge of LIS IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 310 Accepted Submission(s): 87Problem DescriptionIn computer
2014-11-01 23:01:28
319
原创 hdu 5071 模拟
ChatTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 647 Accepted Submission(s): 151Problem DescriptionAs everyone knows, DR
2014-10-24 08:56:49
476
原创 hdu 5063 Operation the Sequence
Operation the SequenceTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 489 Accepted Submission(s): 191Problem DescriptionYou h
2014-10-18 12:46:10
349
原创 Design Tutorial: Inverse the Problem cf 270
D. Design Tutorial: Inverse the Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is an easy wa
2014-09-29 16:24:56
590
原创 hdu 5044树链剖分
TreeTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 475 Accepted Submission(s): 94Problem DescriptionYou are given a tree (a
2014-09-27 22:18:14
523
原创 hdu 4893 Goffi and GCD
/***********************************************\ |Author: YMC |Created Time: 2014/8/24 19:43:10 |File Name: C.cpp |Description: \***********************************************/#include #inclu
2014-09-25 21:44:15
502
原创 hdu 5029 Relief grain 树链剖分
Relief grainTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 100000/100000 K (Java/Others)Total Submission(s): 359 Accepted Submission(s): 86Problem DescriptionThe soil is c
2014-09-22 23:23:11
457
原创 Codeforces Round #267 (Div. 2) D. Fedor and Essay
D. Fedor and Essaytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter you had helped Fedor to find frien
2014-09-19 23:33:30
537
原创 Codeforces Round #267 (Div. 2) C. George and Job
C. George and Jobtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe new ITone 6 has been released recently
2014-09-19 21:25:15
617
原创 hdu 5015 233 Matrix
233 MatrixTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 116 Accepted Submission(s): 63Problem DescriptionIn our daily life
2014-09-14 20:25:58
395
原创 hdu 5007 Post Robot 水题
Post RobotTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem Description DT is a big fan of
2014-09-14 18:42:19
402
原创 hdu 5001 walk
WalkTime Limit: 30000/15000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 170 Accepted Submission(s): 117Special JudgeProblem DescriptionI used t
2014-09-13 23:29:58
375
原创 hdu 4995 Revenge of kNN
Revenge of kNNTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 296 Accepted Submission(s): 66Problem DescriptionIn pattern rec
2014-09-13 20:03:13
432
原创 codeforces round #266 C. Number of Ways
C. Number of Waystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've got array a[1], a[2], ..., a[n], c
2014-09-13 19:57:46
429
原创 codeforces round #266 D Increase Sequence 记忆化搜索
D. Increase Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPeter has a sequence of integers a1, a2
2014-09-13 19:45:57
422
原创 快速幂判断一个数的k次方是否超过另个数容易错误。。
比如判断x ^bool pow(ll x,ll n,ll m){ ll res = 1; while(n > 0){ if(n & 1) res = res * x; x = x*x; n>>=1; if(res >= m) return true; } if(res >= m) return tr
2014-08-16 10:13:23
460
原创 hdu 4951 Multiplication table 哈希水过
Multiplication tableTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 373 Accepted Submission(s): 182Problem DescriptionTeacher
2014-08-15 10:11:55
364
原创 hdu 4923 Room ans Moor
Room and MoorTime Limit: 12000/6000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 602 Accepted Submission(s): 173Problem DescriptionPM Room def
2014-08-08 10:52:40
338
原创 hdu 4918 点分治
Query on the subtreeTime Limit: 16000/8000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 27 Accepted Submission(s): 12Problem Descriptionbobo h
2014-08-06 15:07:28
912
原创 hdu 4919 java大数
Exclusive orTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 277 Accepted Submission(s): 107Problem DescriptionGiven n, find
2014-08-06 11:04:50
462
原创 poj1199和zoj1506 Left labyrinths(搜索,两个oj都过了)
"The instructions to turn always to the left reminded me that such was the common procedure for discovering the central courtyard of certain labyrinths."in The garden of forking paths by Jorge Lui
2014-08-03 23:26:26
525
原创 Checkposts (codeforces #244dv2) 强连通分量 tarjan算法
Your city has n junctions. There are m one-way roads between the junctions. As a mayor of the city, you have to ensure the security of all the junctions.To ensure the security, you have to build s
2014-08-03 23:25:18
831
原创 poj 3013 spfa 最短路 Big Christmas Tree
DescriptionChristmas is coming to KCM city. Suby the loyal civilian in KCM city is preparing a big neat Christmas tree. The simple structure of the tree is shown in right picture.The tree can
2014-08-03 23:24:25
402
原创 poj 2449 Remmarguts’ Date第k短路 dij+A*
Description"Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching his little ducks' head, he told them a story. "Prince Remmarguts lives in
2014-08-03 23:23:31
447
原创 强连通分量两种算法。tarjan和kosaraju
tarjan/***********************************************\ |Author: YMC |Created Time: 2014/5/10 22:36:04 |File Name: tarjan.cpp |Description: \***********************************************/#in
2014-08-03 23:21:46
391
原创 最小生成树两种算法。kruskal和prim
测试数据:80 2 8 1 0 0 0 02 0 6 0 1 0 0 08 6 0 7 5 1 2 01 0 7 0 0 0 9 00 1 5 0 0 3 0 80 0 1 0 3 0 4 60 0 2 9 0 4 0 30 0 0 0 8 6 3 08个点,矩阵m[i][j]代表i与j的距离。kruskal所有边按长度从小到大排序,如果边的两点
2014-08-03 23:20:02
317
原创 Dinic
/***********************************************\ |Author: YMC |Created Time: 2014/4/15 19:42:23 |File Name: Dinic.cpp |Description: \***********************************************/#include #i
2014-08-03 23:17:17
230
原创 Ford_Fulkerson算法
/***********************************************\ |Author: YMC |Created Time: 2014/4/15 19:00:30 |File Name: 1.cpp |Description: \***********************************************/#include #inclu
2014-08-03 23:15:44
394
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人