結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-05 23:56:57 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 366 bytes |
| コンパイル時間 | 16,370 ms |
| コンパイル使用メモリ | 377,628 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 04:37:40 |
| 合計ジャッジ時間 | 13,958 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
use std::io::*;
use std::str::*;
fn main() {
let stdin = stdin();
let mut buf = String::new();
stdin.read_line(&mut buf).ok();
let mut i = buf.split_whitespace()
.map(|n| usize::from_str(n).unwrap());
let (a, b) = (i.next().unwrap(), i.next().unwrap());
let mut result = b / a;
if b % a > 0 {
result += 1;
}
println!("{}", result);
}