結果
| 問題 |
No.715 集合と二人ゲーム
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 15:10:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 82,972 KB |
| 実行使用メモリ | 176,284 KB |
| 最終ジャッジ日時 | 2025-06-12 15:10:37 |
| 合計ジャッジ時間 | 7,085 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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