
ZOJ
文章平均质量分 83
_Occult_
物語が始まった
展开
-
ZOJ 2339 Hyperhuffman
DescriptionYou might have heard about Huffman encoding - that is the coding system that minimizes the expected length of the text if the codes for characters are required to consist of an integral原创 2015-03-26 21:25:08 · 693 阅读 · 0 评论 -
ZOJ 2315 New Year Bonus Grant
DescriptionAll programmers of Mocrosoft software company are organized in a strict subordination hierarchy. Every programmer has exactly one chief, except Bill Hates who is also the head of the co原创 2015-03-25 23:25:35 · 484 阅读 · 0 评论 -
ZOJ 1007 Numerical Summation of a Series
Produce a table of the values of the seriesEquation 1for the 2001 values of x, x= 0.000, 0.001, 0.002, ..., 2.000. All entries of the table must have an absolute error less than 0.5e-12 (12原创 2015-02-18 14:32:29 · 1686 阅读 · 0 评论 -
ZOJ 1016 Parencodings
Let S = s1 s2 ... s2n be a well-formed string of parentheses. S can be encoded in two different ways:By an integer sequence P = p1 p2 ... pn where pi is the number of left parentheses before the原创 2015-02-18 14:42:13 · 458 阅读 · 0 评论 -
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 than kfriends in common, they will become friends in several days. Curr原创 2015-02-18 14:50:51 · 440 阅读 · 0 评论 -
ZOJ 3702 Gibonacci number
DescriptionIn 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 valuesF(0)=1, F(1)=1In this Gibonacci numbe原创 2015-03-10 20:24:26 · 349 阅读 · 0 评论 -
ZOJ 3804 YY's Minions
DescriptionDespite YY's so much homework, she would like to take some time to play with her minions first.YY lines her minions up to an N*M matrix. Every minion has two statuses: awake or asleep原创 2015-03-10 20:21:07 · 410 阅读 · 0 评论 -
ZOJ 3704 I am Nexus Master!
DescriptionNexusHD.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原创 2015-03-10 20:18:08 · 439 阅读 · 0 评论 -
ZOJ 3770 Ranking System
DescriptionFew weeks ago, a famous software company has upgraded its instant messaging software. A ranking system was released for user groups. Each member of a group has a level placed near his n原创 2015-03-10 13:09:38 · 460 阅读 · 0 评论 -
ZOJ 3212 K-Nice
DescriptionThis is a super simple problem. The description is simple, the solution is simple. If you believe so, just read it on. Or if you don't, just pretend that you can't see this one.We say原创 2015-02-25 00:20:20 · 937 阅读 · 0 评论 -
ZOJ 3210 A Stack or A Queue?
DescriptionDo 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原创 2015-02-25 00:07:38 · 430 阅读 · 0 评论 -
ZOJ 3203 Light Bulb
Compared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in his house. Every night, he is wandering in his incommodious house,原创 2015-02-24 23:56:55 · 382 阅读 · 0 评论 -
ZOJ 3768 Continuous Login
DescriptionPierre is recently obsessed with an online game. To encourage users to log in, this game will give users a continuous login reward. The mechanism of continuous login reward is as follow原创 2015-03-10 12:56:49 · 461 阅读 · 0 评论 -
ZOJ 3485 Identification Number
DescriptionMr. Wu, the inspector of the district, is really angry for a robbery happened last night. The robber escaped while Mr. Wu knows nothing about him. The only clue Mr. Wu has is a photo of原创 2015-03-20 15:21:33 · 533 阅读 · 0 评论 -
ZOJ 2319 Beatuiful People
DescriptionThe most prestigious sports club in one city has exactly N members. Each of its members is strong and beautiful. More precisely, i-th member of this club (members being numbered by the原创 2015-03-25 23:19:18 · 454 阅读 · 0 评论 -
ZOJ 2068 Chopsticks
DescriptionIn China, people use a pair of chopsticks to get food on the table, but Mr. L is a bit different. He uses a set of three chopsticks -- one pair, plus an EXTRA long chopstick to get some原创 2015-03-11 13:06:05 · 482 阅读 · 0 评论 -
ZOJ 3703 Happy Programming Contest
DescriptionIn 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原创 2015-03-10 19:01:54 · 531 阅读 · 0 评论 -
ZOJ 3211 Dream City
DescriptionJAVAMAN is visiting Dream City and he sees a yard of gold coin trees. There are n trees in the yard. Let's call them tree 1, tree 2 ...and tree n. At the first day, each tree i has ai原创 2015-02-25 00:17:34 · 738 阅读 · 0 评论 -
ZOJ 3769 Diablo III
DescriptionDiablo III is an action role-playing video game. A few days ago, Reaper of Souls (ROS), the new expansion of Diablo III, has been released! On hearing the news, the crazy video game ner原创 2015-03-09 17:41:00 · 528 阅读 · 0 评论 -
ZOJ 2316 Matrix Multiplication
DescriptionLet us consider undirected graph G = which has N vertices and M edges. Incidence matrix of this graph is N * M matrix A = {a ij}, such that a ij is 1 if i-th vertex is one of the ends o原创 2015-03-25 23:23:42 · 435 阅读 · 0 评论 -
ZOJ 2132 the most frequent number
DescriptionSeven (actually six) problems may be somewhat few for a contest. But I am really unable to devise another problem related to Fantasy Game Series. So I make up an very easy problem as th原创 2015-03-16 16:15:05 · 573 阅读 · 0 评论 -
ZOJ 3882 Help Bob
There is a game very popular in ZJU at present, Bob didn't meant to participate in it. But he decided to join it after discovering a lot of pretty girls playing it.There are n stones on the ground a原创 2015-07-27 23:50:38 · 646 阅读 · 0 评论 -
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-07-27 23:55:17 · 695 阅读 · 0 评论 -
ZOJ 3209 Treasure Map
DescriptionYour boss once had got many copies of a treasure map. Unfortunately, all the copies are now broken to many rectangular pieces, and what make it worse, he has lost some of the pieces. Lu原创 2015-07-27 22:28:04 · 509 阅读 · 0 评论 -
ZOJ 3888 Twelves Monkeys
James Cole is a convicted criminal living beneath a post-apocalyptic Philadelphia. Many years ago, the Earth's surface had been contaminated by a virus so deadly that it forced the survivors to move原创 2015-07-27 23:54:31 · 465 阅读 · 0 评论 -
ZOJ 3886 Nico Number
DescriptionKousaka Honoka and Minami Kotori are playing a game about a secret of Yazawa Nico.When the game starts, Kousaka Honoka will give Minami Kotori an array A of N non-negative integers. T原创 2015-07-28 11:15:32 · 659 阅读 · 0 评论 -
ZOJ 1940 Dungeon Master
DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one原创 2015-07-18 21:44:30 · 593 阅读 · 0 评论 -
ZOJ 1003 Crashing Balloon
DescriptionOn every June 1st, the Children's Day, there will be a game named "crashing balloon" on TV. The rule is very simple. On the ground there are 100 labeled balloons, with the numbers 1原创 2015-07-18 21:41:41 · 414 阅读 · 0 评论 -
ZOJ 2104 Let the Balloon Rise
DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over原创 2015-07-18 21:25:25 · 533 阅读 · 0 评论 -
ZOJ 2705 Dividing a Chocolate
DescriptionThe boy and Karlsson are dividing a chocolate that the boy's parents have presented him for his birthday. A chocolate is a rectangle that consists of m × n chocolate squares, separated原创 2015-07-24 18:50:32 · 475 阅读 · 0 评论 -
ZOJ 2706 Thermal Death of the Universe
DescriptionJohnie has recently learned about the thermal death concept. Given that the Global Entropy always increases, it will end in the thermal death of the Universe. The idea has impressed him原创 2015-07-24 18:52:17 · 391 阅读 · 0 评论 -
ZOJ 2866 Overstaffed Company
Overstaffed CompanyTime Limit: 10 Seconds Memory Limit: 32768 KBIncredible Crazily Progressing Company (ICPC) is facing the problem of overstaffing. It contains several departments and ea原创 2015-09-06 17:27:17 · 546 阅读 · 0 评论 -
ZOJ 2872 Binary Partitions
Binary PartitionsTime Limit: 2 Seconds Memory Limit: 65536 KBHadi loves binary numbers. So he likes to partition everything into powers of two. He wonders in how many ways he can partitio原创 2015-09-06 17:34:16 · 612 阅读 · 0 评论 -
ZOJ 2873 Smart Sister
Smart SisterTime Limit: 5 Seconds Memory Limit: 32768 KBYesterday, Kamran was working on a report, which he must submit to his boss next Saturday. He became tired and went out of his work原创 2015-09-06 17:37:19 · 578 阅读 · 0 评论 -
ZOJ 2868 Incredible Cows
Incredible CowsTime Limit: 2 Seconds Memory Limit: 32768 KBFarmer John is well known for his great cows. Recently, the cows have decided to participate in the Incredible Cows Puzzle Conte原创 2015-09-06 17:31:00 · 462 阅读 · 0 评论 -
ZOJ 3911 Prime Query
Prime QueryTime Limit: 1 Second Memory Limit: 196608 KBYou are given a simple task. Given a sequence A[i] with N numbers. You have to perform Q operations on the given sequence.Here are原创 2015-10-13 12:32:41 · 455 阅读 · 0 评论 -
ZOJ 3905 Cake
CakeTime Limit: 4 Seconds Memory Limit: 65536 KBAlice and Bob like eating cake very much. One day, Alice and Bob went to a bakery and bought many cakes.Now we know that they have bought原创 2015-10-13 12:30:22 · 395 阅读 · 0 评论 -
ZOJ 2112 Dynamic Rankings
The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply find the k-th smallest number of the given N numbers. They have developed原创 2015-08-03 21:51:06 · 665 阅读 · 0 评论 -
ZOJ 3333 Guess the Price
DescriptionIn the television program "Shopping Street" of CCTV-2, two people, A and B are guessing price of a given item. You are asked to decide whose price is closer to the real price.原创 2016-03-08 18:12:51 · 454 阅读 · 0 评论 -
ZOJ 3924 Musical Notes
DescriptionBesides his skills of playing Hearthstone, Bob is also insterested in learning piano in order to make himself more charming, of course, to Alice.Now, Bob had transcribed a musical sco原创 2016-03-08 18:22:20 · 558 阅读 · 0 评论