結果
問題 |
No.715 集合と二人ゲーム
|
ユーザー |
![]() |
提出日時 | 2025-06-12 18:08:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 325 ms |
コンパイル使用メモリ | 82,160 KB |
実行使用メモリ | 157,280 KB |
最終ジャッジ日時 | 2025-06-12 18:10:49 |
合計ジャッジ時間 | 6,570 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 WA * 31 |
ソースコード
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")