結果

問題 No.46 はじめのn歩
ユーザー iwot
提出日時 2019-04-23 11:01:15
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 361 bytes
コンパイル時間 12,177 ms
コンパイル使用メモリ 401,632 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 07:46:01
合計ジャッジ時間 12,893 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim()
        .split_whitespace()
        .map(|e| e.parse().ok().unwrap())
        .collect()
}

fn main() {
    let numbers: Vec<f64> = read_vec();
    let result = (numbers[1] / numbers[0]).ceil();
    println!("{}", result);
}
0