結果
| 問題 |
No.715 集合と二人ゲーム
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:33:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 82,604 KB |
| 実行使用メモリ | 175,992 KB |
| 最終ジャッジ日時 | 2025-06-12 20:34:21 |
| 合計ジャッジ時間 | 6,766 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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