結果

問題 No.46 はじめのn歩
コンテスト
ユーザー rustGanbaruman
提出日時 2026-02-05 17:40:11
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 5,000 ms
+ 806µs
コード長 425 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 330 ms
コンパイル使用メモリ 176,692 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-21 02:21:11
合計ジャッジ時間 1,759 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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