結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-12 14:08:13 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 244 bytes |
| コンパイル時間 | 12,342 ms |
| コンパイル使用メモリ | 399,088 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-06-12 14:08:40 |
| 合計ジャッジ時間 | 13,683 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 16 WA * 7 |
ソースコード
// yukicoder Lv.1 No.56 消費税
use proconio::input;
fn main() {
input! {
d: i32,
p: i32,
}
let tax = (d as f64 * p as f64 / 100.0).round() as i32;
let total_price = d + tax;
println!("{}", total_price);
}