結果

問題 No.46 はじめのn歩
ユーザー bubo
提出日時 2018-02-20 10:26:48
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 382 bytes
コンパイル時間 12,615 ms
コンパイル使用メモリ 380,552 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 14:43:04
合計ジャッジ時間 12,476 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::*;
pub fn main() {
    let mut buf = String::new();
    let _ = stdin().read_line(&mut buf);
    let mut inputs = buf.split_whitespace().flat_map(|x| x.parse::<u64>());
    let (a, b) = (inputs.next().unwrap(), inputs.next().unwrap());
    println!(
        "{}",
        match b % a {
            x if x == 0 => b / a,
            _ => (b / a) + 1,
        }
    );
}
0