結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-08-17 13:00:45 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 843µs | |
| コード長 | 412 bytes |
| 記録 | |
| コンパイル時間 | 720 ms |
| コンパイル使用メモリ | 181,876 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-17 13:00:48 |
| 合計ジャッジ時間 | 2,631 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
fn solve(numbers: &[i32]) -> i32 {
match numbers {
[a, b] => (b + a - 1) / a,
_ => panic!("Expected exactly two integers"),
}
}
fn main() {
let mut input = String::new();
std::io::stdin().read_line(&mut input).unwrap();
let numbers: Vec<i32> = input
.split_whitespace()
.map(|x| x.parse().unwrap())
.collect();
println!("{}", solve(&numbers));
}
vjudge1