自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 UVA 1585 Score

There is an objective test result such as ``OOXXOXXOOO". An `O' means a correct answer of a problem and an `X' means a wrong answer. The score of each problem of this test is calculated by itself and

2015-09-06 17:57:00 658

原创 ZOJ 3210 A Stack or A Queue?

Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data structure and a queue is a "first in first out" (FIFO) one.Here comes the problem:

2015-09-06 17:48:48 516

原创 ZOJ 2975 Kinds of Fuwas

In the year 2008, the 29th Olympic Games will be held in Beijing. This will signify the prosperity of China as well as becoming a festival for people all over the world.The official mascots of Bei

2015-09-06 15:35:05 513

原创 ZOJ 2971 Give Me the Number

Numbers in English are written down in the following way (only numbers less than109 are considered). Number abc,def,ghi is written as "[abc] million[def] thousand [ghi]". Here "[xyz] " means the w

2015-09-06 15:26:19 521

原创 ZOJ 2969 Easy Task

Calculating the derivation of a polynomial is an easy task. Given a function f(x) , we use (f(x))' to denote its derivation. We use x^n to denote xn. To calculate the derivation of a polynomial, you s

2015-09-06 15:24:10 491

原创 ZOJ 2965 Accurately Say "CocaCola"!

In a party held by CocaCola company, several students stand in a circle and play a game.One of them is selected as the first, and should say the number 1. Then they continue to count number from 1 o

2015-09-06 15:22:41 499

原创 UVA 12290 Counting Game

There are n people standing in a line, playing a famous game called \counting". When the game begins,the leftmost person says \1" loudly, then the second person (people are numbered 1 to n from left

2015-09-06 15:08:45 543

原创 UVA 12289 One-Two-Three

Your little brother has just learnt to write one, two and three, in English. He has written a lot of thosewords in a paper, your task is to recognize them. Note that your little brother is only a ch

2015-09-06 14:46:52 510

原创 ZOJ 3787 Access System

For security issues, Marjar University has an access control system for each dormitory building.The system requires the students to use their personal identification cards to open the gate if they wan

2015-09-06 14:39:09 487

原创 ZOJ 3785 What day is that day?

It's Saturday today, what day is it after 11 + 22 + 33 + ... +NN days? InputThere are multiple test cases. The first line of input contains an integer T indicating the number of test c

2015-09-06 14:36:49 630

原创 ZOJ 3778 Talented Chef

As we all know, Coach Gao is a talented chef, because he is able to cookM dishes in the same time. Tonight he is going to have a hearty dinner with his girlfriend at his home. Of course,Coach Gao

2015-09-06 14:34:49 568

原创 ZOJ 3714 Java Beans

There are N little kids sitting in a circle, each of them are carrying some java beans in their hand. Their teacher want to selectM kids who seated in M consecutive seats and collect java beans from

2015-09-06 13:46:07 582

原创 ZOJ 3713 In 7-bit

Very often, especially in programming contests, we treat a sequence of non-whitespace characters as a string. But sometimes, a string may contain whitespace characters or even be empty. We can have su

2015-09-06 13:41:19 444

原创 ZOJ 3712 Hard to Play

MightyHorse is playing a music game called osu!. After playing for several months, MightyHorse discovered the way of calculating score inosu!: 1. While playing osu!, player need to click som

2015-09-06 13:32:32 483

原创 ZOJ 3710 Friends

Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less thank friends in common, they will become friends in several days. Cu

2015-09-06 13:27:18 396

原创 ZOJ 3708 Density of Power Network

The vast power system is the most complicated man-made system and the greatest engineering innovation in the 20th century. The following diagram shows a typical 14 bus power system. In real world, the

2015-09-06 13:24:57 473

原创 ZOJ 3878 Convert QWERTY to Dvorak

Edward, a poor copy typist, is a user of the Dvorak Layout. But now he has only a QWERTY Keyboard with a brokenCaps Lock key, so Edward never presses the brokenCaps Lock key. Luckily, all the othe

2015-09-06 12:59:09 731

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2015-09-04 13:10:41 609

原创 2015年acm省赛

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

2015-09-04 12:28:09 493

空空如也

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

TA关注的人

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