自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(188)
  • 问答 (3)
  • 收藏
  • 关注

原创 ZOJ 3876 May Day Holiday

As a university advocating self-learning and work-rest balance, Marjar University has so many days of rest, including holidays and weekends. Each weekend, which consists of Saturday and Sunday, is a r

2015-09-06 12:57:22 391

原创 ZOJ 3875 Lunch Time

The 999th Zhejiang Provincial Collegiate Programming Contest will be held in Marjar University. The canteen of Marjar University is making preparations for this grand competition. The canteen provides

2015-09-06 12:50:28 516

原创 ZOJ 3872 Beauty of Array

Edward has an array A with N integers. He defines the beauty of an array as the summation of all distinct integers in the array. Now Edward wants to know the summation of the beauty of all contiguous

2015-09-06 12:38:57 418

原创 ZOJ 3867 Earthstone: Easy Version

Earthstone is a famous online card game created by Lizard Entertainment. It is a collectible card game that revolves around turn-based matches between two opponents. Players start the game with a subs

2015-09-05 18:23:53 462

原创 ZOJ 3861 Valid Pattern Lock

Pattern lock security is generally used in Android handsets instead of a password. The pattern lock can be set by joining points on a 3 × 3 matrix in a chosen order. The points of the matrix are regis

2015-09-05 18:21:00 400

原创 NBUT 1223 Friends number

Paula and Tai are couple. There are many stories between them. The day Paula left by airplane, Tai send one message to telephone 2200284, then, everything is changing… (The story in “the snow queen”

2015-09-05 18:18:13 428

原创 NBUT 1220 SPY

The National Intelligence Council of X Nation receives a piece of credible information that Nation Y will send spies to steal Nation X’sconfidential paper. So the commander ofThe National Intellig

2015-09-05 18:13:26 635

原创 NBUT 1218 You are my brother

Little A gets to know a new friend, Little B, recently. One day, they realize that they are family 500 years ago. Now, Little A wants to know whether Little B is his elder, younger or brother.

2015-09-05 18:08:33 561

原创 URAL 1931 Mixing Chemicals

Gibbs: Next! First Pirate: My wife ran off with my dog and I'm drunk for a month. Gibbs: Perfect. Next! Second Pirate: Me have one arm and a bum leg. Gibbs: It's the crow's nest for you. Next!

2015-09-05 18:05:42 471

转载 URAL 1939 First Seal

Jack: Everyone stay calm! We're taking over the ship.Will: Aye! Avast! Officer: This ship cannot be crewed by two men. You'll never make it out of the bay.Jack: Son... I'm Captain Jack Sparr

2015-09-05 17:42:31 562

原创 URAL 1935 Tears of Drowned

Tia Dalma: Come. What service may I do you? You know I demand payment.Jack: I brought payment. Look. An undead monkey. Top that. Tia Dalma: The payment is fair. Old Captain Jack Sparrow’s

2015-09-05 17:29:49 379

原创 URAL 1933 Guns for Battle!

Will: Load the guns. Annamaria: With what? Will: Anything. Everything. Gibbs: Anything we have left. Load the guns! Case shot and langrage. Nails and crushed glass.“Black Pearl” always h

2015-09-05 17:27:55 484

原创 HDU 4414 Finding crosses

The Nazca Lines are a series of ancient geoglyphs located in the Nazca Desert in southern Peru. They were designated as a UNESCO World Heritage Site in 1994. The high, arid plateau stretches more than

2015-09-05 17:24:05 509

原创 ZOJ 3890 Wumpus

One day Leon finds a very classic game called Wumpus.The game is as follow.Once an agent fell into a cave. The legend said that in this cave lived a kind of monster called Wumpus, and there were hor

2015-09-05 17:21:29 463

原创 ZOJ 3883 Scan Code

Edward is writing an editor. After he wrote the function to get input from his special keyboard, he found that what he got is scan code, instead of ASCII code. He is very busy, so he gives you the eas

2015-09-05 16:52:53 602

原创 POJ 3191 The Moronic Cowmpouter

Inexperienced in the digital arts, the cows tried to build a calculating engine (yes, it's a cowmpouter) using binary numbers (base 2) but instead built one based on base negative 2! They were quite p

2015-09-05 16:49:51 524

原创 ZOJ 2412 Farm Irrigation

Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these squares. Different square has a different type of

2015-09-05 16:46:29 510

原创 ZOJ 2403 Stacking Cylinders

Cylinders (e.g. oil drums) (of radius 1 foot) are stacked in a rectangular bin. Each cylinder on an upper row rests on two cylinders in the row below. The cylinders in the bottom row rest on the floor

2015-09-05 16:39:49 425

原创 hdu - 2955 Robberies

The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to work in the lucrative

2015-09-04 15:30:54 371

原创 DP水一水

HDU - 2084 数塔可以从上到下 map[i][j]=data[i][j]+max(map[i-1][j],map[i-1][j-1]);从下到上 找相边的大的相加 直到顶部 把每个节点都走了遍就行HDU - 2018 母牛的故事a[i]=a[i-1]+a[i-3];HDU - 2044 一只小蜜蜂打表1到N的  如果算J到P的 那么答案就是1到P

2015-09-04 13:55:52 510

原创 你的组合数学学得如何?

小明和小红总是喜欢在一起玩。一天,他们又在一起愉快的玩耍了一个下午,到了吃晚饭的时间,他们决定用抛硬币的方法来决定谁请吃晚餐。规则很简单,他们抛一枚均匀的硬币N次,如果出现连续两次或更多正面朝上的情况,那么就是小红请,否则就是小明请。现在小明想知道,抛N次的所有情况下,会有多少种没有任何两次连续正面朝上的情况。输入描述有多组测试数据,请处理到文件结束。每组测试数据仅包含

2015-09-04 13:10:41 633

原创 2015年acm省赛

作为大一的我,很荣幸被老师邀请去参加这次比赛,在上次湘潭邀请赛上被虐得。。。。哈哈______之后,来到省赛,经过一个暑假的练习,思维上是好了些许,但还算是个菜鸟,队里有一位学长(专心搞项目,有一年没有玩acm了)我还有一个同学,我们这队是学校的4队啊,新生队,来取经验的。来到郴州,像小朋友去城市一样转圈,湘南学院还是不错的(听说伙食不错,可惜。。) 比赛那天没睡好,住宿条件有点。。但是我个人

2015-09-04 12:28:09 515

原创 HDU 4708 Rotation Lock Puzzle

Alice was felling into a cave. She found a strange door with a number square matrix. These numbers can be rotated around the center clockwise or counterclockwise. A fairy came and told her how to solv

2015-08-19 17:46:58 452

转载 ZOJ 3699 Dakar Rally

The Dakar Rally is an annual Dakar Series rally raid type of off-road race, organized by the Amaury Sport Organization. The off-road endurance race consists of a series of routes. In different routes,

2015-08-19 17:09:05 671

原创 ZOJ 3704 I am Nexus Master!

NexusHD.org is a popular PT (Private Tracker) site in Zhejiang University aiming to provide high quality stuff. In order to encourage users to unload more stuff, the administrators make the following

2015-08-19 15:28:18 605

原创 ZOJ 3703 Happy Programming Contest

In Zhejiang University Programming Contest, a team is called "couple team" if it consists of only two students loving each other. In the contest, the team will get a lovely balloon with unique color f

2015-08-19 15:25:15 443

原创 ZOJ 3702 Gibonacci number

In mathematical terms, the normal sequence F(n) of Fibonacci numbers is defined by the recurrence relationF(n)=F(n-1)+F(n-2)with seed values F(0)=1, F(1)=1In this Gibonacci numbers problem, th

2015-08-19 15:18:22 509

原创 HDU 4715 Difference Between Primes

All you know Goldbach conjecture.That is to say, Every even integer greater than 2 can be expressed as the sum of two primes. Today, skywind present a new conjecture: every even integer can be express

2015-08-19 15:15:38 493

原创 HDU 4709 Herding

Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees in the meadow

2015-08-19 15:13:55 382

原创 HDU 4707 Pet

One day, Lin Ji wake up in the morning and found that his pethamster escaped. He searched in the room but didn’t find the hamster. He tried to use some cheese to trap the hamster. He put the cheese tr

2015-08-19 15:05:39 479

原创 HDU 4710 Balls Rearrangement

Bob has N balls and A boxes. He numbers the balls from 0 to N-1, and numbers the boxes from 0 to A-1. To find the balls easily, he puts the ball numbered x into the box numbered a if x = a mod A.S

2015-08-19 15:02:41 383

原创 素数的判定

米勒罗宾算法bool test (LL n,LL a,LL d){ if(n==2) return true; if(n==a) return true; if((n&1)==0) return false; while(!(d&1)) d=d>>1; LL t=pow_mod(a,d,n); while((d!=n-1)&&(t!=1

2015-08-17 18:16:17 567

原创 poj 2074 Line of Sight

An architect is very proud of his new home and wants to be sure it can be seen by people passing by his property line along the street. The property contains various trees, shrubs, hedges, and other o

2015-08-17 18:00:59 576

转载 poj 1836 Alignment

In the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of the captain. The captain is not satisfied with the way his sold

2015-08-17 15:17:09 377

原创 poj 1675 Happy Birthday!

There are three berries on a round birthday cake. You are required to divide the cake into three identical parts such that each part contains exactly one berry. To make it easy, it is assumed that the

2015-08-17 14:43:24 775

原创 poj 1673 EXOCENTER OF A TRIANGLE

Given a triangle ABC, the Extriangles of ABC are constructed as follows: On each side of ABC, construct a square (ABDE, BCHJ and ACFG in the figure below). Connect adjacent square corners to form

2015-08-17 14:31:48 468

原创 三角型的性质

三角形顶点坐标:A(x1; y1);B(x2; y2);C(x3; y3);④重心G(x4;y4);x4=(x1+x2+x3)/3;y4=(y1+y2+y3)/3;⑤外心W(x5;y5);根据外心到各顶点的距离相等:AG=BG;AG=CG;即:Sqrt[(x1 - x5)^2 + (y1 - y5)^2] == Sqrt[(x2 - x5)^2 + (y2 - y5)^2],Sqr

2015-08-17 14:14:00 452

原创 HDU 4722 Good Numbers

If we sum up every digit of a number and the result can be exactly divided by 10, we say this number is a good number. You are required to count the number of good numbers in the range from A to B,

2015-08-17 11:17:24 438

原创 HDU 4726 Kia's Calculation

Doctor Ghee is teaching Kia how to calculate the sum of two integers. But Kia is so careless and alway forget to carry a number when the sum of two digits exceeds 9. For example, when she calculates 4

2015-08-17 11:15:44 421

原创 HDU 4720 Naive and Silly Muggles

Three wizards are doing a experiment. To avoid from bothering, a special magic is set around them. The magic forms a circle, which covers those three wizards, in other words, all of them are inside or

2015-08-17 11:13:41 421

空空如也

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

TA关注的人

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