2003' ACM/ICPCѵϰ 11

H: Game Show Math