結果
問題 | No.2921 Seated in Classroom |
ユーザー |
![]() |
提出日時 | 2024-09-15 11:55:21 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 492 bytes |
コンパイル時間 | 15,247 ms |
コンパイル使用メモリ | 378,200 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 11:55:38 |
合計ジャッジ時間 | 16,175 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
use proconio::input; use proconio::fastout; #[fastout] #[allow(non_snake_case)] fn main() { input! { T: usize, } assert!(1 <= T && T <= 200_000); for _ in 0..T { input! { (N, M): (usize, usize), } assert!(1 <= N && N <= 1_000_000_000); assert!(1 <= M && M <= 1_000_000_000); if M <= N { println!("{}", (N + 3) / 4); } else { println!("{}", (N + M + 7) / 8); } } }