Welcome to Yumao′s Blog.
ZOJ Problem Set – 1003 Crashing Balloon
, 2010年04月04日 , C Language , 评论 在〈ZOJ Problem Set – 1003 Crashing Balloon〉中留言功能已關閉 ,
Crashing Balloon

——————————————————————————–

Time Limit: 1 Second      Memory Limit: 32768 KB

——————————————————————————–

On every June 1st, the Children's Day, there will be a game named “crashing balloon” on TV.   The rule is very simple.  On the ground there are 100 labeled balloons, with the numbers 1 to 100.  After the referee shouts “Let's go!” the two players, who each starts with a score of  “1”, race to crash the balloons by their feet and, at the same time, multiply their scores by the numbers written on the balloons they crash.  After a minute, the little audiences are allowed to take the remaining balloons away, and each contestant reports his\her score, the product of the numbers on the balloons he\she's crashed.  The unofficial winner is the player who announced the highest score.

Inevitably, though, disputes arise, and so the official winner is not determined until the disputes are resolved.  The player who claims the lower score is entitled to challenge his\her opponent's score.  The player with the lower score is presumed to have told the truth, because if he\she were to lie about his\her score, he\she would surely come up with a bigger better lie.  The challenge is upheld if the player with the higher score has a score that cannot be achieved with balloons not crashed by the challenging player.  So, if the challenge is successful, the player claiming the lower score wins.

评论已关闭