自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(168)
  • 收藏
  • 关注

转载 Ubuntu 配置中的问题

Ubuntu 配置中的问题dpkg: error processing package xxx (--configure)这个问题可以由以下命令解决$ sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/ $ sudo mkdir /var/lib/dpkg/info/ $ sudo apt-get update $ ...

2017-01-19 16:53:00 173

转载 最大流-最小割 MAXFLOW-MINCUT ISAP

  简单的叙述就不必了。  对于一个图,我们要找最大流,对于基于增广路径的算法,首先必须要建立反向边。  反向边的正确性:    我努力查找了许多资料,都没有找到理论上关于反向边正确性的证明。    但事实上,我们不难理解,对于每条反向边,我们流过它相当于撤销了一条正向边的流量。    并且它是必须的:        而且从理论上,我们在加入反向边之后得...

2016-12-03 11:29:00 277

转载 Codeforces CF#628 Education 8 F. Bear and Fair Set

F. Bear and Fair Settime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a grizzly bear. He is ...

2016-12-02 14:43:00 188

转载 Codeforces CF#628 Education 8 E. Zbazi in Zeydabad

E. Zbazi in Zeydabadtime limit per test5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputA tourist wants to visit countr...

2016-12-02 12:38:00 185

转载 Codeforces CF#628 Education 8 D. Magic Numbers

D. Magic Numberstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputConsider the decimal presentation of an integ...

2016-12-02 12:16:00 122

转载 Codeforces CF#628 Education 8 C. Bear and String Distance

C. Bear and String Distancetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a little polar bea...

2016-12-02 12:07:00 93

转载 Codeforces CF#628 Education 8 B. New Skateboard

B. New Skateboardtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMax wants to buy a new skateboard. He has cal...

2016-12-02 12:02:00 190

转载 Codeforces CF#628 Education 8 A. Tennis Tournament

A. Tennis Tournamenttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA tennis tournament withnparti...

2016-12-02 11:56:00 155

转载 一致性hash算法详解

转载请说明出处:http://blog.csdn.net/cywosp/article/details/23397179 一致性哈希算法在1997年由麻省理工学院提出的一种分布式哈希(DHT)实现算法,设计目标是为了解决因特网中的热点(Hot spot)问题,初衷和CARP十分类似。一致性哈希修正了CARP使用的简 单哈希算法带来的问题,使得分布式哈希(DHT)可以在P2P环境...

2016-11-26 20:57:00 93

转载 2016 Multi-University Training Contest 2 D. Differencia

DifferenciaTime Limit: 10000/10000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 601Accepted Submission(s): 173Problem DescriptionProfessor Zhang has...

2016-09-01 18:36:00 103

转载 2016 Multi-University Training Contest 1 G. Rigid Frameworks

Rigid FrameworksTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 337Accepted Submission(s): 273Problem DescriptionErik Demaine is ...

2016-08-31 18:55:00 97

转载 2016 Multi-University Training Contest 1 F.PowMod

PowModTime Limit: 3000/1500 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1008Accepted Submission(s): 341Problem DescriptionDeclare:k=∑mi=1φ(i∗n)m...

2016-08-30 23:14:00 129

转载 2016 Multi-University Training Contest 1 J.Subway

SubwayTime Limit: 7000/3500 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 860Accepted Submission(s): 126Special JudgeProblem Descriptionjiefangxuan...

2016-08-28 20:35:00 100

转载 2016 Multi-University Training Contest 1 I. Solid Dominoes Tilings

Solid Dominoes TilingsTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 235Accepted Submission(s): 143Problem DescriptionDominoes a...

2016-08-28 20:23:00 93

转载 2016 Multi-University Training Contest 1 H.Shell Necklace

Shell NecklaceTime Limit: 16000/8000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 534Accepted Submission(s): 227Problem DescriptionPerhaps the sea‘s...

2016-08-26 18:23:00 96

转载 2016中国大学生程序设计竞赛 - 网络选拔赛 C. Magic boy Bi Luo with his excited tree

Magic boy Bi Luo with his excited treeProblem DescriptionBi Luo is a magic boy, he also has a migic tree, the tree hasNnodes , in each node , there is a treasure, it's value isV[i], and fo...

2016-08-26 14:22:00 156

转载 2016中国大学生程序设计竞赛 - 网络选拔赛 J. Alice and Bob

Alice and BobTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 147Accepted Submission(s): 22Problem DescriptionAs you know, Alic...

2016-08-25 11:21:00 240

转载 2016中国大学生程序设计竞赛 网络选拔赛 I This world need more Zhu

This world need more ZhuTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 262Accepted Submission(s): 49Problem DescriptionAs we al...

2016-08-25 10:59:00 149

转载 2016 Multi-University Training Contest 1 C.Game

GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 588Accepted Submission(s): 146Problem DescriptionSea5 and wzh are playing g...

2016-08-24 22:08:00 93

转载 2016 ccpc 网络选拔赛 F. Robots

RobotsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 60Accepted Submission(s): 13Problem DescriptionQXJ hasNrobots on the plan...

2016-08-23 10:00:00 130

转载 51nod p1201 整数划分

1201整数划分基准时间限制:1秒 空间限制:131072KB 分值:80难度:5级算法题将N分为若干个不同整数的和,有多少种不同的划分方式,例如:n = 6,{6} {1,5} {2,4} {1,2,3},共4种。由于数据较大,输出Mod 10^9 + 7的结果即可。Input输入1个数N(1<=N<...

2016-03-07 20:12:00 65

转载 51nod p1175 区间中第K大的数

1175区间中第K大的数基准时间限制:1秒 空间限制:131072KB 分值:160难度:6级算法题一个长度为N的整数序列,编号0 - N - 1。进行Q次查询,查询编号i至j的所有数中,第K大的数是多少。例如: 1 7 6 3 1。i = 1, j = 3,k = 2,对应的数为7 6 3,第2大的数为6。I...

2016-03-04 21:07:00 94

转载 线性筛法 欧拉函数

线性筛法: 1 for(int i = 2; i < MAXPRIME; i++) 2 { 3 if(!visit[i]) prime[tot++] = i; 4 for(int j = 0; j < tot; j++) 5 { 6 if(i * prime[j] >= MAXPRIME) break;...

2016-03-04 11:56:00 120

转载 ural 2071. Juice Cocktails

2071. Juice CocktailsTime limit: 1.0 secondMemory limit: 64 MBOncenDenchiks come to the bar and each orders a juice cocktail. It could be from 1 to 3 different juices in each cocktail...

2016-03-04 11:14:00 159

转载 ural 2073. Log Files

2073. Log FilesTime limit: 1.0 secondMemory limit: 64 MBNikolay has decided to become the best programmer in the world! Now he regularly takes part in various programming contests, atte...

2016-03-04 11:14:00 112

转载 ural 2070. Interesting Numbers

2070. Interesting NumbersTime limit: 2.0 secondMemory limit: 64 MBNikolay and Asya investigate integers together in their spare time. Nikolay thinks an integer is interesting if it is a...

2016-03-04 10:54:00 149

转载 ural 2069. Hard Rock

2069. Hard RockTime limit: 1.0 secondMemory limit: 64 MBIlya is a frontman of the most famous rock band on Earth. Band decided to make the most awesome music video ever for their new si...

2016-03-04 10:47:00 129

转载 ural 2068. Game of Nuts

2068. Game of NutsTime limit: 1.0 secondMemory limit: 64 MBThe war for Westeros is still in process, manpower and supplies are coming to an end and the winter is as near as never before...

2016-03-04 10:37:00 111

转载 ural 2067. Friends and Berries

2067. Friends and BerriesTime limit: 2.0 secondMemory limit: 64 MBThere is a group ofnchildren. According to a proverb, every man to his own taste. So the children value strawberries ...

2016-03-04 10:30:00 144

转载 ural 2066. Simple Expression

2066. Simple ExpressionTime limit: 1.0 secondMemory limit: 64 MBYou probably know that Alex is a very serious mathematician and he likes to solve serious problems. This is another probl...

2016-03-04 10:26:00 119

转载 ural 2065. Different Sums

2065. Different SumsTime limit: 1.0 secondMemory limit: 64 MBAlex is a very serious mathematician and he likes to solve serious problems. For example, this problem.You are to co...

2016-03-04 10:25:00 115

转载 ural 2064. Caterpillars

2064. CaterpillarsTime limit: 3.0 secondMemory limit: 64 MBYoung gardener didn’t visit his garden for a long time, and now it’s not very pleasant there:ncaterpillars have appeared on t...

2016-03-04 10:23:00 131

转载 ural 2063. Black and White

2063. Black and WhiteTime limit: 1.0 secondMemory limit: 64 MBLet’s play a game. You are given a row ofnballs, each ball is either black or white. Their positions in a row are numbere...

2016-03-04 10:15:00 149

转载 ural 2062 Ambitious Experiment

2062. Ambitious ExperimentTime limit: 3.0 secondMemory limit: 128 MBDuring several decades, scientists from planet Nibiru are working to create an engine that would allow spacecrafts to...

2016-03-04 10:10:00 139

转载 CF# 334 Lieges of Legendre

C. Lieges of Legendretime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin and Nicky Sun have invented a new ...

2015-12-31 12:02:00 110

转载 CF# 334 Moodular Arithmetic

B. Moodular Arithmetictime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs behooves any intelligent scho...

2015-12-31 11:48:00 101

转载 CF# 334 Alternative Thinking

A. Alternative Thinkingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKevin has just recevied his disappoint...

2015-12-31 11:41:00 111

转载 ural 1255. Graveyard of the Cosa Nostra

1255. Graveyard of the Cosa NostraTime limit: 1.0 secondMemory limit: 64 MBThere is a custom among the Ural Mafiosi — a big Mafioso’s coffin is to be carried by all his subordinates. Th...

2015-12-26 11:11:00 108

转载 ural 1252. Sorting the Tombstones

1252. Sorting the TombstonesTime limit: 1.0 secondMemory limit: 64 MBThere is time to throw stones and there is time to sort stones…An old desolate cemetery is a long dismal row...

2015-12-26 10:48:00 102

转载 ural 1251. Cemetery Manager

1251. Cemetery ManagerTime limit: 1.0 secondMemory limit: 64 MBThere is a tradition at the USU championships to call the most hard-to-solve problems coffins. But to distribute coffi...

2015-12-26 10:40:00 143

空空如也

空空如也

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

TA关注的人

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