hdu1398

maksyuki 发表于 oj 分类,标签:
0
hdu1398

Square Coins

People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all square numbers up to 289 (=17^2), i.e., 1-credit coins, 4-credit coins, 9-credit coins, ..., and >>继续阅读

poj3046

maksyuki 发表于 oj 分类,标签:
0
poj3046

Ant Counting

Bessie was poking around the ant hill one day watching the ants march to and fro while gathering food. She realized that many of the ants were siblings, indistinguishable from one another. She also realized the sometimes only one ant w >>继续阅读

poj1742

maksyuki 发表于 oj 分类,标签:
0
poj1742

Coins

People in Silverland use coins.They have coins of value A1,A2,A3...An Silverland dollar.One day Tony opened his money-box and found there were some coins.He decided to buy a very nice watch in a nearby shop. He wanted to pay the exact price(w >>继续阅读

poj3280

maksyuki 发表于 oj 分类,标签:
0
poj3280

Cheapest Palindrome

Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID tag that the system will read as the cows pass by a scanner. Each ID tag's co >>继续阅读

poj2718

maksyuki 发表于 oj 分类,标签:
0
poj2718

Smallest Difference

Given a number of distinct decimal digits, you can form one integer by choosing a non-empty subset of these digits and writing them in some order. The remaining digits can be written down in some order to form a second integer. >>继续阅读

poj3262

maksyuki 发表于 oj 分类,标签:
0
poj3262

Protecting the Flowers

Farmer John went to cut some wood and left N (2 ≤ N ≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the cluster of cows was in his garden eating his beautiful flowers. Wanting to mini >>继续阅读

poj3040

maksyuki 发表于 oj 分类,标签:
0
poj3040

Allowance

As a reward for record milk production, Farmer John has decided to start paying Bessie the cow a small weekly allowance. FJ has a set of coins in N (1 <= N <= 20) different >>继续阅读

poj3187

maksyuki 发表于 oj 分类,标签: ,
0
poj3187

Backward Digit Sums

FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certain order and then sum adjacent numbers to produce a new list with one fewer number. They repeat this until only >>继续阅读

BestCoder Round #78(Div.2) (0/4) (Div.1) (0/4)

maksyuki 发表于 比赛 分类,标签:
0
BestCoder Round #78(Div.2) (0/4) (Div.1) (0/4)

>>继续阅读

poj1966

maksyuki 发表于 oj 分类,标签: , ,
0
poj1966

Cable TV Network

The interconnection of the relays in a cable TV network is bi-directional. The network is connected if there is at least one interconnection path between each pair of relays present in the network. Otherwise the network is disconne >>继续阅读

poj2125

maksyuki 发表于 oj 分类,标签: , ,
0
poj2125

Destroying The Graph

Alice and Bob play the following game. First, Alice draws some directed graph with N vertices and M arcs. After that Bob tries to destroy it. In a move he may take any vertex of the graph and remove either all arcs incoming int >>继续阅读

poj2175

maksyuki 发表于 oj 分类,标签:
0
poj2175

Evacuation Plan

The City has a number of municipal buildings and a number of fallout shelters that were build specially to hide municipal workers in case of a nuclear war. Each fallout shelter has a limited capacity in terms of a number of people i >>继续阅读

poj2516

maksyuki 发表于 oj 分类,标签:
0
poj2516

Minimum Cost

Dearboy, a goods victualer, now comes to a big problem, and he needs your help. In his sale area there are N shopkeepers (marked from 1 to N) which stocks goods from him.Dearboy has M supply places (marked from 1 to M), each provides K >>继续阅读

poj2195

maksyuki 发表于 oj 分类,标签:
0
poj2195

Going Home

On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to an adjacent point. For each little man, you need to pay a $1 travel fee for every step >>继续阅读

poj3422

maksyuki 发表于 oj 分类,标签:
0
poj3422

Kaka's Matrix Travels

On an N × N chessboard with a non-negative number in each grid, Kaka starts his matrix travels with SUM = 0. For each travel, Kaka moves one rook from the left-upper grid to the right-bottom one, taking care that the rook move >>继续阅读

poj3308

maksyuki 发表于 oj 分类,标签: ,
0
poj3308

Paratroopers

It is year 2500 A.D. and there is a terrible war between the forces of the Earth and the Mars. Recently, the commanders of the Earth are informed by their spies that the invaders of Mars want to land some paratroopers in the m × n grid >>继续阅读