自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 New Year Transportation

DescriptionNew Year is coming in Line World! In this world, there are n cells numbered by integers from 1 to n, as a 1 × n board. People live in cells. However, it was hard to move between dis

2016-09-18 21:06:14 247

原创 hdu 1232 畅通工程

畅通工程Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47553    Accepted Submission(s): 25330Problem Description某省调查城镇交通状况,

2016-08-24 09:46:21 237

原创 LightOJ 1294

DescriptionGiven two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first mintegers and make their sign negat

2016-08-24 09:12:37 209

原创 LightOJ 1043

DescriptionSee the picture below.You are given AB, AC and BC. DE is parallel to BC. You are also given the area ratio between ADE and BDEC. You have to find the value ofAD.InputI

2016-08-24 09:08:11 231

原创 CodeForces 597A Divisibility

DescriptionFind the number of k-divisible numbers on the segment [a, b]. In other words you need to find the number of such integer values x that a ≤ x ≤ b and x is divisible by k.Input

2016-08-24 09:05:08 194

原创 CodeForces 598A Tricky Sum

DescriptionIn this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum.For example, for n = 4 the sum is equal to  -

2016-08-24 08:58:48 192

原创 CodeForces 632B Alice, Bob, Two Teams

Alice, Bob, Two TeamsTime Limit:1500MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uDescriptionAlice and Bob are playing a game. The game involves splitting up game pieces in

2016-08-23 11:37:27 188

原创 CodeForces 366A Dima and Guards

Dima and GuardsTime Limit:1000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uDescriptionNothing has changed since the last round. Dima and Inna still love each other and wan

2016-08-23 10:58:09 175

原创 CodeForces 658A Bear and Reverse Radewoosh

Bear and Reverse RadewooshTime Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uDescriptionLimak and Radewoosh are going to compete against each other in the upcomin

2016-08-23 10:51:12 175

原创 CodeForces 554B Ohana Cleans Up

Ohana Cleans UpTime Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uDescriptionOhana Matsumae is trying to clean a room, which is divided up into an n by n grid o

2016-08-23 10:43:19 159

原创 CodeForces 660A Co-prime Array

Co-prime ArrayTime Limit:1000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uDescriptionYou are given an array of n elements, you must make it a co-prime array in as fe

2016-08-23 10:24:36 161

原创 CodeForce 546D 素数筛+前缀和

DescriptionTwo soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one tries to make maximum possible numbe

2016-08-15 21:03:05 271

原创 UVA 10200

Problem DescriptionEuler is a well-known matematician, and, among many other things, he discovered that the formulan2 + n+41 produces a prime for 0 ≤ n < 40. For n = 40, the formula produces 1681,

2016-08-15 17:19:13 215

原创 hdu 1155 Bungee Jumping

Bungee JumpingTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1181    Accepted Submission(s): 507Problem DescriptionOnce aga

2016-08-15 16:08:38 240

原创 LightOJ 1104

DescriptionSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What i

2016-08-15 15:58:01 318

原创 CodeForce 510 B

DescriptionFox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot that has some color.

2016-08-15 15:32:25 267

原创 Codeforce 612C

括号配对问题时间限制:3000 ms  |  内存限制:65535 KB难度:3描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No样例输入3[(])(])([[]()])样例输出No

2016-07-31 21:04:37 455

原创 POJ 1363 Rails

RailsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 31530 Accepted: 12267DescriptionThere is a famous railway station in PopPush City. Country there is

2016-07-31 20:41:58 171

原创 hdu 1702 ACboy needs your help again!

ACboy needs your help again!Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5690    Accepted Submission(s): 2978Problem Descript

2016-07-31 19:49:11 161

原创 hdu 2035 人见人爱A^B

人见人爱A^BTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35409    Accepted Submission(s): 24059Problem Description求A^B的最后三位数表示的整

2016-07-31 18:05:40 152

原创 POJ 1995 Raising Modulo Numbers

Raising Modulo NumbersTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 6604 Accepted: 3918DescriptionPeople are different. Some secretly read magazines f

2016-07-31 17:55:43 148

原创 POJ 3641 Pseudoprime numbers

Pseudoprime numbersTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8846 Accepted: 3723DescriptionFermat's theorem states that for any prime number p and

2016-07-31 17:40:55 163

原创 hdu 5363 Key Set

Key SetTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1857    Accepted Submission(s): 973Problem Descriptionsoda has a set S

2016-07-31 17:06:43 198

原创 hdu 2124 Repair the Wall

Repair the WallTime Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3664    Accepted Submission(s): 1819Problem DescriptionLong t

2016-07-31 15:21:49 278

原创 hdu 2111 Saving HDU

Saving HDUTime Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9680    Accepted Submission(s): 4525Problem Description话说上回讲到海东集团面临内

2016-07-31 15:06:41 210

原创 hdu 1009 FatMouse' Trade

FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 66813    Accepted Submission(s): 22717Problem DescriptionFatMouse

2016-07-31 14:25:07 164

原创 hdu 2037 今年暑假不AC (贪心)

今年暑假不ACTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47356    Accepted Submission(s): 25456Problem Description“今年暑假不AC?”“是的。

2016-07-31 13:52:45 265 1

原创 poj 2251 Dungeon Master (BFS)

Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 26644 Accepted: 10394DescriptionYou are trapped in a 3D dungeon and need to find the quick

2016-07-30 20:58:11 489

原创 hdu 2717 Catch That Cow (BFS)

Catch That CowTime Limit: 5000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12344    Accepted Submission(s): 3833Problem DescriptionFarmer J

2016-07-30 20:29:05 172

原创 hdu 2612 Find a way

Find a wayTime Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10474    Accepted Submission(s): 3421Problem DescriptionPass a year

2016-07-30 20:01:36 181

原创 hdu 1242 Rescue

RescueTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 26496    Accepted Submission(s): 9380Problem DescriptionAngel was caught

2016-07-29 20:41:23 123

空空如也

空空如也

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

TA关注的人

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