結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-23 11:11:15 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 788µs | |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 1,762 ms |
| コンパイル使用メモリ | 181,648 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-15 12:49:53 |
| 合計ジャッジ時間 | 3,625 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)]` (part of `#[warn(unused)]`) 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);
}