結果

問題 No.46 はじめのn歩
ユーザー Hiroaki Kono
提出日時 2017-10-26 20:22:14
言語 Java
(openjdk 23)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 386 bytes
コンパイル時間 3,675 ms
コンパイル使用メモリ 76,420 KB
実行使用メモリ 41,244 KB
最終ジャッジ日時 2024-11-21 20:08:55
合計ジャッジ時間 4,905 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        Integer size = s.nextInt();
        Integer distance = s.nextInt();
        if (distance % size == 0) {
            System.out.println(distance / size);
        } else {
            System.out.println(distance / size + 1);
        }
    }
}
0