EricYang

Tech Spot of Eric

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年5月9日

摘要: PotsTime Limit:1000MSMemory Limit:65536KTotal Submissions:5062Accepted:2156Special JudgeDescriptionYou are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤i≤ 2) from the tap;DROP(i) empty the potito the drain;POUR(i,j) 阅读全文
posted @ 2011-05-09 22:10 Eric-Yang 阅读(308) 评论(0) 推荐(0) 编辑

摘要: Shuffle'm UpTime Limit:1000MSMemory Limit:65536KTotal Submissions:3016Accepted:1381DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips,S1andS2, each stack containingCchips. Each stac 阅读全文
posted @ 2011-05-09 20:43 Eric-Yang 阅读(240) 评论(0) 推荐(0) 编辑

摘要: Prime PathTime Limit:1000MSMemory Limit:65536KTotal Submissions:5585Accepted:3219DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of security to 阅读全文
posted @ 2011-05-09 19:24 Eric-Yang 阅读(215) 评论(0) 推荐(0) 编辑