結果
| 問題 | No.3797 Express Elevators and Emergency Stairs |
| ユーザー |
|
| 提出日時 | 2026-11-13 23:05:50 |
| 言語 | Rust (1.99.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 26 ms / 2,000 ms |
| + 585µs | |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 3,153 ms |
| コンパイル使用メモリ | 183,228 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-11-13 23:05:57 |
| 合計ジャッジ時間 | 6,134 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
use proconio::input;
fn main() {
input! {
n: usize,
mut ab: [(u32, u32); n],
}
ab.sort_unstable_by_key(|v| v.0);
let mut max = 1;
for &(a, b) in &ab {
if a > max {
break;
}
max = max.max(b);
}
println!("{max}");
}