自定义博客皮肤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 238

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

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

2016-12-03 11:29:00 362

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

F. Bear and Fair Set time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Limak is a grizzly bear. He is ...

2016-12-02 14:43:00 266

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

E. Zbazi in Zeydabad time limit per test 5 seconds memory limit per test 512 megabytes input standard input output standard output A tourist wants to visit countr...

2016-12-02 12:38:00 257

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

D. Magic Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Consider the decimal presentation of an integ...

2016-12-02 12:16:00 273

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

C. Bear and String Distance time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Limak is a little polar bea...

2016-12-02 12:07:00 123

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

B. New Skateboard time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Max wants to buy a new skateboard. He has cal...

2016-12-02 12:02:00 239

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

A. Tennis Tournament time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A tennis tournament withnparti...

2016-12-02 11:56:00 191

转载 一致性hash算法详解

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

2016-11-26 20:57:00 136

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

Differencia Time Limit: 10000/10000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 601Accepted Submission(s): 173 Problem Description Professor Zhang has...

2016-09-01 18:36:00 145

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

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

2016-08-31 18:55:00 146

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

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

2016-08-30 23:14:00 174

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

Subway Time Limit: 7000/3500 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 860Accepted Submission(s): 126Special Judge Problem Description jiefangxuan...

2016-08-28 20:35:00 140

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

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

2016-08-28 20:23:00 137

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

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

2016-08-26 18:23:00 138

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

Magic boy Bi Luo with his excited tree Problem Description Bi 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 211

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

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

2016-08-25 11:21:00 300

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

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

2016-08-25 10:59:00 194

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

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

2016-08-24 22:08:00 139

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

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

2016-08-23 10:00:00 184

转载 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 92

转载 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 128

转载 线性筛法 欧拉函数

线性筛法: 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 167

转载 ural 2071. Juice Cocktails

2071. Juice Cocktails Time limit: 1.0 secondMemory limit: 64 MB OncenDenchiks 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 191

转载 ural 2073. Log Files

2073. Log Files Time limit: 1.0 secondMemory limit: 64 MB Nikolay 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 167

转载 ural 2070. Interesting Numbers

2070. Interesting Numbers Time limit: 2.0 secondMemory limit: 64 MB Nikolay 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 210

转载 ural 2069. Hard Rock

2069. Hard Rock Time limit: 1.0 secondMemory limit: 64 MB Ilya 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 175

转载 ural 2068. Game of Nuts

2068. Game of Nuts Time limit: 1.0 secondMemory limit: 64 MB The 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 156

转载 ural 2067. Friends and Berries

2067. Friends and Berries Time limit: 2.0 secondMemory limit: 64 MB There 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 199

转载 ural 2066. Simple Expression

2066. Simple Expression Time limit: 1.0 secondMemory limit: 64 MB You 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 173

转载 ural 2065. Different Sums

2065. Different Sums Time limit: 1.0 secondMemory limit: 64 MB Alex 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 150

转载 ural 2064. Caterpillars

2064. Caterpillars Time limit: 3.0 secondMemory limit: 64 MB Young 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 170

转载 ural 2063. Black and White

2063. Black and White Time limit: 1.0 secondMemory limit: 64 MB Let’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 193

转载 ural 2062 Ambitious Experiment

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

2016-03-04 10:10:00 190

转载 CF# 334 Lieges of Legendre

C. Lieges of Legendre time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Kevin and Nicky Sun have invented a new ...

2015-12-31 12:02:00 136

转载 CF# 334 Moodular Arithmetic

B. Moodular Arithmetic time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output As behooves any intelligent scho...

2015-12-31 11:48:00 127

转载 CF# 334 Alternative Thinking

A. Alternative Thinking time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Kevin has just recevied his disappoint...

2015-12-31 11:41:00 143

转载 ural 1255. Graveyard of the Cosa Nostra

1255. Graveyard of the Cosa Nostra Time limit: 1.0 secondMemory limit: 64 MB There 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 151

转载 ural 1252. Sorting the Tombstones

1252. Sorting the Tombstones Time limit: 1.0 secondMemory limit: 64 MB There 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 137

转载 ural 1251. Cemetery Manager

1251. Cemetery Manager Time limit: 1.0 secondMemory limit: 64 MB There 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 172

空空如也

空空如也

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

TA关注的人

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