摘要: DescriptionOnce, in one kingdom, there was a queen and that queen was expecting a baby. The queen prayed: ``If my child was a son and if only he was a sound king.'' After nine months her child was born, and indeed, she gave birth to a nice son. Unfortunately, as it used to happen in royal fa 阅读全文
posted @ 2013-10-05 21:23 forevermemory 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 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 elements wit 阅读全文
posted @ 2013-10-05 13:26 forevermemory 阅读(249) 评论(0) 推荐(0) 编辑