結果
問題 |
No.2921 Seated in Classroom
|
ユーザー |
![]() |
提出日時 | 2024-09-15 12:42:14 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 12,471 ms |
コンパイル使用メモリ | 403,376 KB |
実行使用メモリ | 5,504 KB |
最終ジャッジ日時 | 2024-10-12 08:49:54 |
合計ジャッジ時間 | 13,759 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
use proconio::input; use proconio::fastout; use std::cmp::max; #[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); println!("{}", max((N + 3) / 4, (N + M + 7) / 8)); } }