
zoj
文章平均质量分 75
tokers
所有的魅力在“习惯”面前都将无色。
展开
-
ZOJ——3204 Connect them
You have n computers numbered from 1 to n and you want to connect them to make a small local area network (LAN). All connections are two-way (that is connecting computers i and j is the same as conne原创 2014-08-05 10:45:17 · 681 阅读 · 0 评论 -
ZOJ3430---Detect the Virus
Time Limit: 2 Seconds Memory Limit: 65536 KBOne day, Nobita found that his computer is extremely slow. After several hours’ work, he finally found that it was a virus that made his poor computer s原创 2015-02-10 14:46:01 · 1383 阅读 · 0 评论 -
ZOJ3228---Searching the String(AC自动机)
Little jay really hates to deal with string. But moondy likes it very much, and she’s so mischievous that she often gives jay some dull problems related to string. And one day, moondy gave jay another原创 2015-03-05 14:03:09 · 939 阅读 · 0 评论 -
ZOJ3777---Problem Arrangement
The 11th Zhejiang Provincial Collegiate Programming Contest is coming! As a problem setter, Edward is going to arrange the order of the problems. As we know, the arrangement will have a great effect on原创 2015-03-08 19:34:32 · 1059 阅读 · 0 评论 -
ZOJ3203--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, t原创 2015-04-05 16:15:07 · 822 阅读 · 0 评论 -
ZOJ3331---Process the Tasks(dp)
There are two machines A and B. There are n tasks, namely task 1, task 2, ..., task n. You must assign each task to one machine to process it. There are some facts you must know and comply with:You mus原创 2015-04-14 16:49:04 · 1111 阅读 · 0 评论 -
ZOJ3471---Most Powerful(状压dp)
Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and a lot of power i原创 2015-04-24 16:59:01 · 893 阅读 · 0 评论 -
ZOJ3545---Rescue the Rabbit(AC自动机+dp)
Dr. X is a biologist, who likes rabbits very much and can do everything for them. 2012 is coming, and Dr. X wants to take some rabbits to Noah’s Ark, or there are no rabbits any more.A rabbit’s genes c原创 2015-04-20 16:17:36 · 1098 阅读 · 0 评论 -
ZOj3605--- Find the Marble(概率dp)
Alice and Bob are playing a game. This game is played with several identical pots and one marble. When the game starts, Alice puts the pots in one line and puts the marble in one of the pots. After tha原创 2015-04-15 19:09:23 · 739 阅读 · 0 评论 -
ZOJ1610——Count the Colors
Count the ColorsTime Limit: 2 Seconds Memory Limit: 65536 KB Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones.Your原创 2014-12-10 18:44:41 · 907 阅读 · 0 评论 -
ZOJ3582---Back to the Past
Back to the PastTime Limit: 2 Seconds Memory Limit: 65536 KB Special Judge Recently poet Mr. po encountered a serious problem, rumor said some of his early poems are written by oth原创 2014-12-25 21:37:16 · 840 阅读 · 0 评论 -
ZOJ3349——Special Subsequence
Special SubsequenceTime Limit: 5 Seconds Memory Limit: 32768 KB There a sequence S with n integers , and A is a special subsequence thatsatisfies |Ai-Ai-1| <=d ( 0 Now your task is原创 2014-12-09 20:58:42 · 862 阅读 · 0 评论 -
ZOJ3659——Conquer a New Region
ZOJ Problem Set - 3659Conquer a New RegionTime Limit: 5 Seconds Memory Limit: 32768 KB The wheel of the history rolling forward, our king conquered a new region in a distant contine原创 2014-09-05 15:05:20 · 722 阅读 · 0 评论 -
hdu4421 ZOJ 3656——Bit Magic
Problem DescriptionYesterday, my teacher taught me about bit operators: and (&), or (|), xor (^). I generated a number table a[N], and wrote a program to calculate the matrix table b[N][N] using thr原创 2014-08-23 18:16:44 · 706 阅读 · 0 评论 -
ZOJ3261——Connections in Galaxy War
ZOJ Problem Set - 3261Connections in Galaxy WarTime Limit: 3 Seconds Memory Limit: 32768 KB In order to strengthen the defense ability, many stars in galaxy allied together and built原创 2014-09-04 22:59:18 · 784 阅读 · 0 评论 -
ZOJ1455——Schedule Problem
Schedule ProblemTime Limit: 2 Seconds Memory Limit: 65536 KB Special Judge A project can be divided into several parts. Each part should be completed continuously. This means if a原创 2014-10-29 20:10:20 · 786 阅读 · 0 评论 -
ZOJ3640----Help Me Escape
Help Me EscapeTime Limit: 2 Seconds Memory Limit: 32768 KB Background If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th原创 2014-12-20 16:02:36 · 914 阅读 · 0 评论 -
ZOJ3822---- Domination
DominationTime Limit: 8 Seconds Memory Limit: 131072 KB Special JudgeEdward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with his原创 2014-12-21 22:08:47 · 766 阅读 · 0 评论 -
zoj3551---Bloodsucker
BloodsuckerTime Limit: 2 Seconds Memory Limit: 65536 KB In 0th day, there are n-1 people and 1 bloodsucker.Every day, two and only two of them meet. Nothing will happen if they are of t原创 2014-12-22 21:47:00 · 862 阅读 · 0 评论 -
zoj3329---One Person Game
One Person GameTime Limit: 1 Second Memory Limit: 32768 KB Special Judge There is a very simple and interesting one-person game. You have 3 dice, namelyDie1, Die2 and Die3. Die1原创 2014-12-24 16:29:05 · 1004 阅读 · 0 评论 -
ZOJ2836---Number Puzzle(容斥原理)
Given a list of integers (A1, A2, …, An), and a positive integer M, please find the number of positive integers that are not greater than M and dividable by any integer from the given list.InputThe inp原创 2015-05-28 16:00:02 · 1152 阅读 · 0 评论