結果
| 問題 | No.715 集合と二人ゲーム |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:33:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 177,608 KB |
| 最終ジャッジ日時 | 2026-07-12 00:47:14 |
| 合計ジャッジ時間 | 8,397 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 WA * 31 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
a.sort()
blocks = []
current = a[0]
length = 1
for num in a[1:]:
if num == current + 1:
length += 1
else:
blocks.append(length)
current = num
length = 1
blocks.append(length)
odd_count = sum(1 for l in blocks if l % 2 == 1)
print("First" if odd_count % 2 else "Second")
gew1fw