摘要:
BookshelfTime Limit:1000MSMemory Limit:65536KTotal Submissions:6990Accepted:3506DescriptionFarmer John recently bought a bookshelf for cow library, but the shelf is getting filled up quite quickly, and now the only available space is at the top.Each of theNcows (1 ≤N≤ 20,000) has some height ofHi(1 阅读全文
posted @ 2014-02-01 22:08
~~Snail~~
阅读(514)
评论(0)
推荐(0)
摘要:
IMMEDIATE DECODABILITYTime Limit:1000MSMemory Limit:10000KTotal Submissions:10504Accepted:4971DescriptionAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in bin 阅读全文
posted @ 2014-02-01 22:03
~~Snail~~
阅读(141)
评论(0)
推荐(0)
摘要:
THE DRUNK JAILERTime Limit:1000MSMemory Limit:10000KTotal Submissions:21957Accepted:13879DescriptionA certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.One night, the jailer gets bored and decides to play a game. Fo 阅读全文
posted @ 2014-02-01 21:58
~~Snail~~
阅读(149)
评论(0)
推荐(0)

浙公网安备 33010602011771号