結果
問題 | 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 = 0blanks = 0prev_r = 0for _ in range(n):l, r = map(int, input().split())l -= 1blanks += l - prev_rif blanks % 2: grundy ^= r - lprev_r = rprint(["First", "Second"][grundy == 0])