結果

問題 No.56 消費税
ユーザー inux39
提出日時 2017-07-25 12:24:54
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 12,223 ms
コンパイル使用メモリ 379,140 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-09 17:05:02
合計ジャッジ時間 13,262 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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: f32 = vec[1].parse::<f32>().unwrap() / 100.0;
	println!("{}", d + (d as f32 * p) as i32);
}

0