結果

問題 No.715 集合と二人ゲーム
ユーザー gew1fw
提出日時 2025-06-12 12:53:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 392 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 82,288 KB
実行使用メモリ 157,536 KB
最終ジャッジ日時 2025-06-12 12:55:08
合計ジャッジ時間 7,345 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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