結果

問題 No.715 集合と二人ゲーム
ユーザー gew1fw
提出日時 2025-06-12 18:08:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 157,196 KB
最終ジャッジ日時 2025-06-12 18:10:42
合計ジャッジ時間 6,656 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29 WA * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

n, *rest = map(int, open(0).read().split())
a = rest[:n]
a.sort()

groups = []
if n == 0:
    print("Second")
    exit()
current = a[0]
count = 1
for num in a[1:]:
    if num == current + 1:
        count += 1
    else:
        groups.append(count)
        count = 1
    current = num
groups.append(count)

xor = 0
for m in groups:
    xor ^= (m % 2)

print("First" if xor != 0 else "Second")
0