AtCoder Regular Contest 143
C
Piles of Pebbles
AtCoder
⌀ 1805
原题
← BD →
翻译中…

Problem Statement

翻译中…

There are $N$ piles of pebbles. Initially, the $i$-th pile has $A_i$ pebbles.

翻译中…

Takahashi and Aoki will play a game using these piles. They will alternately perform the following operation, with Takahashi going first, and the one who becomes unable to do so loses the game.

翻译中…
  • Choose one or more piles, and remove the following number of pebbles from each chosen pile: $X$ pebbles if this operation is performed by Takahashi, and $Y$ pebbles if performed by Aoki. Here, a pile with an insufficient number of pebbles cannot be chosen.
翻译中…

Determine the winner of the game if both players play optimally.

翻译中…

Constraints

翻译中…
  • $1 \leq N \leq 2\times 10^5$
  • $1 \leq X, Y \leq 10^9$
  • $1 \leq A_i \leq 10^9$
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N X Y
A_1 A_2 \cdots A_N

翻译中…

Output

翻译中…

If it is Takahashi who will win the game, print First; if it is Aoki, print Second.

翻译中…

样例

Input #1
2 1 1
3 3
Output #1
First
Here is one possible progression of the game. - Takahashi removes $1$ pebble from both piles. - Aoki removes $1$ pebble from the $1$-st pile. - Takahashi removes $1$ pebble from the $1$-st pile. - Aoki removes $1$ pebble from the $2$-nd pile. - Takahashi removes $1$ pebble from the $2$-nd pile. No matter how Aoki plays, Takahashi can always win, so the answer is `First`.
Input #2
2 1 2
3 3
Output #2
Second
题目信息
题号
arc143_c
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。