結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-03-24 11:39:00 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 171 bytes |
| コンパイル時間 | 11,164 ms |
| コンパイル使用メモリ | 390,980 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 16:03:07 |
| 合計ジャッジ時間 | 12,175 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
コンパイルメッセージ
warning: variable does not need to be mutable --> src/main.rs:4:9 | 4 | let mut d: f64 = d.trim().parse().unwrap(); | ----^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
ソースコード
fn main() {
let mut d = String::new();
std::io::stdin().read_line(&mut d).ok();
let mut d: f64 = d.trim().parse().unwrap();
println!("{:.2}", d * 1.08);
}
ixTL255