結果

問題 No.56 消費税
コンテスト
ユーザー bubo
提出日時 2018-03-03 20:03:03
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 5,000 ms
+ 801µs
コード長 304 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 18,255 ms
コンパイル使用メモリ 174,244 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-08-05 22:12:56
合計ジャッジ時間 2,695 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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