結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2022-11-17 01:17:22 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 419 bytes |
コンパイル時間 | 13,191 ms |
コンパイル使用メモリ | 384,276 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 19:43:39 |
合計ジャッジ時間 | 13,035 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); } }); }