AtCoder Beginner Contest 297
G
Constrained Nim 2
AtCoder
⌀ 1834
原题
← Ex→
翻译中…

Problem Statement

翻译中…

There are $N$ piles of stones. Initially, the $i$-th pile contains $A_i$ stones. With these piles, Taro the First and Jiro the Second play a game against each other.

翻译中…

Taro the First and Jiro the Second make the following move alternately, with Taro the First going first:

翻译中…
  • Choose a pile of stones, and remove between $L$ and $R$ stones (inclusive) from it.
翻译中…

A player who is unable to make a move loses, and the other player wins. Who wins if they optimally play to win?

翻译中…

Constraints

翻译中…
  • $1\leq N \leq 2\times 10^5$
  • $1\leq L \leq R \leq 10^9$
  • $1\leq A_i \leq 10^9$
  • All values in the input are integers.
翻译中…

Input

翻译中…

The input is given from Standard Input in the following format:

翻译中…

N L R
A_1 A_2 \ldots A_N

翻译中…

Output

翻译中…

Print First if Taro the First wins; print Second if Jiro the Second wins.

翻译中…

样例

Input #1
3 1 2
2 3 3
Output #1
First
Taro the First can always win by removing two stones from the first pile in his first move.
Input #2
5 1 1
3 1 4 1 5
Output #2
Second
Input #3
7 3 14
10 20 30 40 50 60 70
Output #3
First
题目信息
题号
abc297_g
时间限制
2 s
内存限制
1024 MB

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