摘要:E - One-Dimensional Battle Ships CodeForces - 567D Alice and Bob love playing one-dimensional battle ships. They play on the field in the form of a li
阅读全文
摘要:K - Vanya and Scales CodeForces - 552C Vanya has a scales for weighing loads and weights of masses w0, w1, w2, ..., w100 grams where w is some integer
阅读全文
摘要:C - King Arthur's Birthday Celebration POJ - 3682 King Arthur is an narcissist who intends to spare no coins to celebrate his coming K-th birthday. Th
阅读全文
摘要:D - Ugly Problem HDU - 5920 Everyone hates ugly problems. You are given a positive integer. You must represent that number by sum of palindromic numbe
阅读全文
摘要:Recently, Valery have come across an entirely new programming language. Most of all the language attracted him with template functions and procedures.
阅读全文
摘要:A - A Simple Math Problem HDU - 5974 Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Common Multiple (X,
阅读全文
摘要:Beautiful Now HDU - 6351 Anton has a positive integer n, however, it quite looks like a mess, so he wants to make it beautiful after k swaps of digits
阅读全文
摘要:Nash Equilibrium is an important concept in game theory. Rikka and Yuta are playing a simple matrix game. At the beginning of the game, Rikka shows an
阅读全文
摘要:Today on a lecture about strings Gerald learned a new definition of string equivalency. Two strings a and b of equal length are called equivalent in o
阅读全文
摘要:In HDU, you have to run along the campus for 24 times, or you will fail in PE. According to the rule, you must keep your speed, and your running dista
阅读全文
摘要:Robbery Time Limit: 1000MS Memory Limit: 32768K Total Submissions: 1249 Accepted: 504 Description Inspector Robstop is very angry. Last night, a bank
阅读全文
摘要:The Old Frog King lives on the root of an infinite tree. According to the law, each node should connect to exactly two nodes on the next level, formin
阅读全文
摘要:A frog has just learned some number theory, and can't wait to show his ability to his girlfriend. Now the frog is sitting on a grid map of infinite ro
阅读全文
摘要:Limak is a little bear who loves to play. Today he is playing by destroying block towers. He built n towers in a row. The i-th tower is made of hi ide
阅读全文
摘要:The cows are having a picnic! Each of Farmer John's K (1 ≤ K ≤ 100) cows is grazing in one of N (1 ≤ N ≤ 1,000) pastures, conveniently numbered 1...N.
阅读全文
摘要:You are given a sequence of numbers a1, a2, ..., an, and a number m. Check if it is possible to choose a non-empty subsequence aij such that the sum o
阅读全文
摘要:One traveler travels among cities. He has to pay for this while he can get some incomes. Now there are n cities, and the traveler has m days for trave
阅读全文
摘要:In the capital city of Berland, Bertown, demonstrations are against the recent election of the King of Berland. Berland opposition, led by Mr. Ovalny,
阅读全文
摘要:Little Q loves playing with different kinds of graphs very much. One day he thought about an interesting category of graphs called ``Cool Graph'', whi
阅读全文
摘要:Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The exciteme
阅读全文
摘要:there are N ACMers in HDU team. ZJPCPC Sunny Cup 2007 is coming, and lcy want to select some excellent ACMers to attend the contest. There have been M
阅读全文
摘要:Two players play a game. The game is played on a rectangular board with n × m squares. At the beginning of the game two different squares of the board
阅读全文
摘要:To confuse the opponents, the Galactic Empire represents fractions in an unusual format. The fractions are represented as two sets of integers. The pr
阅读全文
摘要:Matches Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13264 Accepted: 7712 Description Here is a simple game. In this game, there ar
阅读全文
摘要:Factstone Benchmark Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5577 Accepted: 2524 Description Amtel has announced that it will releas
阅读全文
摘要:Bridge over a rough river POJ - 3404 Bridge over a rough river Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4427 Accepted: 1824 Descript
阅读全文
摘要:Delta-wave HDU - 1030 A triangle field is numbered with successive integers in the way shown on the picture below. The traveller needs to go from the
阅读全文
摘要:DNA Sorting Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 114211 Accepted: 45704 Description One measure of ``unsortedness'' in a sequenc
阅读全文
摘要:Prime Number CodeForces - 359C Simon has a prime number x and an array of non-negative integers a1, a2, ..., an. Simon loves fractions very much. Toda
阅读全文
摘要:Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 54588 Accepted: 22773 Description Bessie has gone to the mall's jewelry stor
阅读全文
摘要:Basic Wall Maze Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 3384 Accepted: 1525 Special Judge Description In this problem you have to s
阅读全文
摘要:Bin Packing Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 6410 Accepted: 2894 Description A set of n 1-dimensional items have to be packe
阅读全文
摘要:Defining Moment Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1660 Accepted: 760 Description As a homework assignment, you have been task
阅读全文
摘要:Running a taxi station is not all that simple. Apart from the obvious demand for a centralised coordination of the cabs in order to pick up the custom
阅读全文
摘要:Asteroids POJ - 3041 Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid
阅读全文
摘要:An arithmetic progression is such a non-empty sequence of numbers where the difference between any two successive numbers is constant. This constant n
阅读全文
摘要:Acm is a clever boy, and he developed a new game form the old Stone-Forfex-Cloth game. In this game, a number of children sit in a circle, each one sh
阅读全文