結果

問題 No.46 はじめのn歩
コンテスト
ユーザー rustGanbaruman
提出日時 2026-02-05 17:40:11
言語 Rust
(1.92.0 + proconio + num + itertools)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 425 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 20,429 ms
コンパイル使用メモリ 191,688 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-02-05 17:40:33
合計ジャッジ時間 3,242 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io::{Read,self};

fn main(){
    let mut buf = String::new();
    io::stdin().read_to_string(&mut buf).unwrap();
    let mut input = buf.split_ascii_whitespace();

    let strid:usize = input.next().unwrap().parse().unwrap();
    let goal:usize = input.next().unwrap().parse().unwrap();
    
    if goal % strid == 0{
        println!("{}", goal / strid)
    }else {
        println!("{}", goal / strid + 1);
    }
}
0