結果
| 問題 | No.3797 Express Elevators and Emergency Stairs |
| ユーザー |
titia
|
| 提出日時 | 2026-11-13 22:36:15 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 438 ms / 2,000 ms |
| + 840µs | |
| コード長 | 191 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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)
titia