11 人解决,20 人已尝试。
13 份提交通过,共有 63 份提交。
6.6 EMB 奖励。
单点时限: 1.0 sec
内存限制: 256 MB
Given
Input starts with an integer
Each case starts with a line containing two integers
For each case, print the case number and Yes
if you can pay No
if it’s not possible.
3 2 5 1 2 2 10 1 2 3 10 1 3 5
Case 1: Yes Case 2: No Case 3: Yes
11 人解决,20 人已尝试。
13 份提交通过,共有 63 份提交。
6.6 EMB 奖励。