結果

問題 No.46 はじめのn歩
ユーザー penguinshunya
提出日時 2018-01-09 20:06:03
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 429 bytes
コンパイル時間 11,080 ms
コンパイル使用メモリ 396,376 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 14:27:52
合計ジャッジ時間 11,826 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

macro_rules! i {
    ( $( $t:ty ),* ) => {{
        let mut s = String::new();
        std::io::stdin().read_line(&mut s).ok();
        let mut i = s.split_whitespace();
        ( $( i.next().unwrap().parse::<$t>().unwrap() ),* )
    }};
    ( $( $t:ty ),* : $e:expr ) => {
        (0..$e).map(|_| i!( $( $t ),* )).collect::<Vec<_>>()
    };
}

fn main() {
    let (a, b) = i!(u32, u32);
    println!("{}", (b + (a - 1)) / a);
}
0