結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-16 13:05:31 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 12,800 ms |
| コンパイル使用メモリ | 384,084 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-17 04:49:07 |
| 合計ジャッジ時間 | 13,665 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
fn main() {
let mut input = String::new();
std::io::stdin().read_line(&mut input).ok();
let input = input
.trim()
.split_whitespace()
.map(|x| x.parse::<u32>().unwrap())
.collect::<Vec<_>>();
let (a, b) = (input[0], input[1]);
println!("{}", if b % a == 0 { b / a } else { b / a + 1 });
}