結果
| 問題 |
No.2823 PEX (Predecessing Excluded Value) Game
|
| コンテスト | |
| ユーザー |
みどりむし🦠
|
| 提出日時 | 2024-04-11 16:38:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 305 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 76,588 KB |
| 最終ジャッジ日時 | 2024-07-27 21:21:37 |
| 合計ジャッジ時間 | 4,388 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 WA * 1 |
ソースコード
n = int(input())
grundy = 0
blanks = 0
prev_r = 0
for _ in range(n):
l, r = map(int, input().split())
l -= 1
blanks += l - prev_r
if blanks % 2: grundy ^= r - l
prev_r = r
print(["First", "Second"][grundy == 0])
みどりむし🦠