結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
ta60143
|
| 提出日時 | 2018-10-24 16:51:59 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 12,585 ms |
| コンパイル使用メモリ | 390,276 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-19 05:28:35 |
| 合計ジャッジ時間 | 13,442 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
ソースコード
use std::io;
fn main() {
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
let mut input = input.trim().split_whitespace();
let d: u32 = input.next().unwrap().parse().unwrap();
let p: u32 = input.next().unwrap().parse().unwrap();
println!("{}", (d * (100 + p)) / 100);
}
ta60143