結果

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

ソースコード

diff #

use std::io::stdin;
pub fn main() {
    let (d, p): (u64, u64) = {
        let mut s = String::new();
        let _ = stdin().read_line(&mut s);
        let mut v = s.split_whitespace().flat_map(|x| x.parse());
        (v.next().unwrap(), v.next().unwrap())
    };
    println!("{}", d + d * p / 100);
}
0