結果

問題 No.56 消費税
ユーザー inux39
提出日時 2017-07-25 12:58:34
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 12,967 ms
コンパイル使用メモリ 397,124 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 17:05:36
合計ジャッジ時間 14,300 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main(){
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).unwrap();
	let vec: Vec<&str> = s.trim().split(' ').collect();
	let d: i32 = vec[0].parse().unwrap();
	let p = vec[1].parse::<f64>().unwrap() / 100.0;
	println!("{}", ((d as f64 * p) + d as f64).floor());
}

0