結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-11-17 01:17:22 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 5,000 ms |
| + 806µs | |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 7,146 ms |
| コンパイル使用メモリ | 181,712 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-29 19:15:52 |
| 合計ジャッジ時間 | 5,265 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
use std::io::{self, BufRead};
fn main() {
io::stdin().lock().lines().for_each(|l| {
let input = l
.unwrap()
.split(' ')
.map(|n| n.parse::<usize>().unwrap())
.collect::<Vec<_>>();
if input[1] % input[0] == 0 {
println!("{}", input[1] / input[0]);
} else {
println!("{}", input[1] / input[0] + 1);
}
});
}
cra77756176