結果

問題 No.46 はじめのn歩
ユーザー MattyaaMattyan
提出日時 2018-08-16 00:04:18
言語 Java
(openjdk 23)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 1,956 ms
コンパイル使用メモリ 74,564 KB
実行使用メモリ 54,388 KB
最終ジャッジ日時 2024-09-24 09:40:19
合計ジャッジ時間 3,822 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        int num1=sc.nextInt();
        int num2=sc.nextInt();
        int ho=num2/num1;
        if(num2%num1!=0)
        {
            ho++;
        }
        System.out.println(ho);
    }
}
0