結果
問題 | No.56 消費税 |
ユーザー |
|
提出日時 | 2019-04-23 21:57:55 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 13,121 ms |
コンパイル使用メモリ | 378,276 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 17:51:20 |
合計ジャッジ時間 | 14,306 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 |
ソースコード
fn read_vec<T: std::str::FromStr>() -> Vec<T> { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim() .split_whitespace() .map(|e| e.parse().ok().unwrap()) .collect() } fn main() { let input: Vec<i64> = read_vec(); println!("{}", input[0] + input[0] * input[1] / 100); }