摘要:
Problem DescriptionOn 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 he moves, until he enters a house. The task 阅读全文
posted @ 2013-10-05 19:26
persistent codeants
阅读(212)
评论(0)
推荐(0)
摘要:
Problem DescriptionDearboy, 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 different kinds of goods (marked from 1 to K) 阅读全文
posted @ 2013-10-05 17:48
persistent codeants
阅读(222)
评论(0)
推荐(0)
摘要:
Problem DescriptionThe galaxy war between the Empire Draco and the Commonwealth of Zibu broke out 3 years ago. Draco established a line of defense called Grot. Grot is a straight line withNdefense stations. Because of the cooperation of the stations, Zibu’s Marine Glory cannot march any further but 阅读全文
posted @ 2013-10-05 12:08
persistent codeants
阅读(213)
评论(0)
推荐(0)
摘要:
Problem DescriptionYou are given n closed, integer intervals [ai, bi] and n integers c1, ..., cn.Write a program that:reads the number of intervals, their end points and integers c1, ..., cn from the standard input,computes the minimal size of a set Z of integers which has at least ci common element 阅读全文
posted @ 2013-10-05 08:44
persistent codeants
阅读(239)
评论(0)
推荐(0)

浙公网安备 33010602011771号