시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 256 MB | 16 | 10 | 7 | 70.000% |
There are $N$ cups numbered 0 through $N-1$. For each $i (1 \leq i \leq N-1)$, the cup $i$ contains $A_i$ beans, and this cup is labeled with an integer $C_i$.
Two people will play the following game:
Who will win if both players play optimally?
$N$
$C_1$ $A_1$
$C_2$ $A_2$
$\vdots$
$C_{N-1}$ $A_{N-1}$
Print the name of the winner: "First
" or "Second
".
3 1 0 1 1
Second
7 1 1 2 0 1 0 2 0 4 1 3 0
First
7 1 1 2 0 1 9 2 10 4 3 3 5
Second
Notes to the Sample 1: