結果

問題 No.3797 Express Elevators and Emergency Stairs
ユーザー titia
提出日時 2026-11-13 22:36:15
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 438 ms / 2,000 ms
+ 840µs
コード長 191 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 83 ms
コンパイル使用メモリ 64,188 KB
実行使用メモリ 82,256 KB
最終ジャッジ日時 2026-11-13 22:36:39
合計ジャッジ時間 4,826 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

N=int(input())
AB=[list(map(int,input().split())) for i in range(N)]

now=1
AB.sort()

for a,b in AB:
    if a<=now:
        now=max(now,b)

print(now)
0