結果
| 問題 | No.715 集合と二人ゲーム |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 22:04:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 82,644 KB |
| 実行使用メモリ | 158,500 KB |
| 最終ジャッジ日時 | 2025-04-15 22:06:12 |
| 合計ジャッジ時間 | 6,477 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 WA * 31 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
a.sort()
groups = []
prev = a[0]
current_length = 1
for num in a[1:]:
if num - prev == 1:
current_length += 1
else:
groups.append(current_length)
current_length = 1
prev = num
groups.append(current_length)
xor_sum = 0
for length in groups:
xor_sum ^= (length % 2)
print("First" if xor_sum != 0 else "Second")
lam6er