自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 548

原创 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 503

原创 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 573

原创 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 333

原创 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 320

原创 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 348

原创 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 403

原创 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 282

原创 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 448

原创 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 324

原创 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 549

原创 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 432

原创 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 454

原创 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 426

原创 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 498

原创 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 471

原创 [HNOI2002]营业额统计 Splay tree

不知道为什么,在bzoj wa了,在另个oj ac l

2014-09-16 23:38:44 290

原创 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 365

原创 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 365

原创 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 340

原创 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 401

原创 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 397

原创 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 381

转载 欧拉常数 Euler-Mascheroni constant 以及调和级数

转自点击打开链接

2014-08-31 22:25:11 1457

原创 排序的时候一定要注意相等的情况。。

一道题目,为了写的快一点,因为排序给写yangwei

2014-08-27 00:28:45 446

原创 欧拉函数的性质

求 gcd(a,n)=g -> gcd(a/g,n/g)=1 -> 1到n/g中与n/g互质的个数 -> phi(n/g)

2014-08-24 23:11:22 255

原创 快速幂判断一个数的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 428

原创 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 334

原创 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 310

原创 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 872

原创 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 430

原创 自己搭网站太累了。。

主机空间流量太小。。。gao

2014-08-03 23:39:19 338

原创 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 488

原创 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 687

原创 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 367

原创 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 416

原创 强连通分量两种算法。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 357

原创 最小生成树两种算法。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 269

原创 Dinic

/***********************************************\ |Author: YMC |Created Time: 2014/4/15 19:42:23 |File Name: Dinic.cpp |Description: \***********************************************/#include #i

2014-08-03 23:17:17 200

原创 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 348

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除