結果

問題 No.46 はじめのn歩
コンテスト
ユーザー taba
提出日時 2024-07-30 09:37:56
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 288 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 903 ms
コンパイル使用メモリ 183,424 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-03 19:09:23
合計ジャッジ時間 3,998 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    proconio::input! {
        a: u64,
        b: u64,
    }
    let s = proc(a, b);
    println!("{s}");
}

fn proc(a: u64, b: u64) -> u64 {
    b.div_ceil(a)
}

#[cfg(test)]
mod test {
    use super::*;
    #[test]
    fn test() {
        assert_eq!(proc(2, 5), 3);
    }
}
0