結果

問題 No.56 消費税
ユーザー halship
提出日時 2020-10-23 20:10:28
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 532 bytes
コンパイル時間 11,918 ms
コンパイル使用メモリ 403,268 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-21 10:22:43
合計ジャッジ時間 13,389 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::{self, BufReader, BufWriter, Read, Write};

fn main() {
    let stdin = io::stdin();
    let mut stdin = BufReader::new(stdin.lock());
    let stdout = io::stdout();
    let mut stdout = BufWriter::new(stdout.lock());

    let mut buf = String::new();
    stdin.read_to_string(&mut buf).unwrap();

    let mut iter = buf.split_whitespace();
    let d: u64 = iter.next().unwrap().parse().unwrap();
    let p: u64 = iter.next().unwrap().parse().unwrap();

    writeln!(&mut stdout, "{}", d * (100 + p) / 100).unwrap();
}
0