結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
Maricom_tkg
|
| 提出日時 | 2018-10-23 11:36:22 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 580 ms |
| コンパイル使用メモリ | 188,924 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-13 12:22:29 |
| 合計ジャッジ時間 | 1,589 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 13 WA * 10 |
ソースコード
use std::io::Read;
fn main() {
let mut buf = String::new();
std::io::stdin().read_to_string(&mut buf).unwrap();
let mut iter = buf.split_whitespace();
let d: f64 = iter.next().unwrap().parse().unwrap();
let p: f64 = iter.next().unwrap().parse().unwrap();
println!("{}", (d * (1. + p/100.)) as isize);
}
Maricom_tkg