結果

問題 No.56 消費税
ユーザー natu7925s
提出日時 2025-06-12 14:13:41
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 220 bytes
コンパイル時間 12,960 ms
コンパイル使用メモリ 380,008 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-06-12 14:14:02
合計ジャッジ時間 13,197 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder Lv.1 No.56 消費税
use proconio::input;

fn main() {
    input! {
        d: i32,
        p: i32,
    }

    let tax: i32 =  (d * p) / 100;
    let total_price = d + tax;
    println!("{}", total_price);
}
0