結果
| 問題 | No.388 階段 (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-04-23 11:11:15 | 
| 言語 | Rust (1.83.0 + proconio) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 287 bytes | 
| コンパイル時間 | 13,738 ms | 
| コンパイル使用メモリ | 378,264 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-13 08:01:10 | 
| 合計ジャッジ時間 | 14,618 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
コンパイルメッセージ
warning: unused `Result` that must be used --> src/main.rs:3:5 | 3 | std::io::stdin().read_line(&mut line); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 3 | let _ = std::io::stdin().read_line(&mut line); | +++++++
ソースコード
fn main() {
    let mut line = String::new();
    std::io::stdin().read_line(&mut line);
    let line: Vec<&str> = line.trim().split(" ").collect();
    let s: f64 = line[0].parse().unwrap();
    let f: f64 = line[1].parse().unwrap();
    println!("{}", ((s / f).floor() as i32) + 1);
}
            
            
            
        