結果

問題 No.56 消費税
ユーザー inux39
提出日時 2017-07-25 12:51:05
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 282 bytes
コンパイル時間 13,732 ms
コンパイル使用メモリ 401,112 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-09 17:05:21
合計ジャッジ時間 13,720 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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 + (d as f64 * p).floor() as i32);
}

0