結果
問題 | No.2823 PEX (Predecessing Excluded Value) Game |
ユーザー |
👑 |
提出日時 | 2024-07-28 11:59:37 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 248 ms / 2,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 361 ms |
コンパイル使用メモリ | 82,188 KB |
実行使用メモリ | 76,396 KB |
最終ジャッジ日時 | 2024-07-28 11:59:43 |
合計ジャッジ時間 | 5,438 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 51 |
ソースコード
n = int(input())x = 0t = 0b = 1y = 0for _ in range(n):l, r = map(int, input().split())t ^= (l - b) & 1if t == 1:if b == l:x ^= yl -= yx ^= r - l + 1y = r - l + 1b = r + 1if x == 0:print("Second")else:print("First")