結果

問題 No.46 はじめのn歩
ユーザー hidetohideto
提出日時 2017-06-05 18:07:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 539 bytes
コンパイル時間 2,043 ms
コンパイル使用メモリ 79,008 KB
実行使用メモリ 57,512 KB
最終ジャッジ日時 2023-10-22 05:33:38
合計ジャッジ時間 4,128 ms
ジャッジサーバーID
(参考情報)
judge9 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,440 KB
testcase_01 AC 136 ms
57,488 KB
testcase_02 AC 136 ms
57,464 KB
testcase_03 AC 137 ms
57,420 KB
testcase_04 AC 137 ms
57,512 KB
testcase_05 AC 135 ms
57,428 KB
testcase_06 AC 137 ms
57,416 KB
testcase_07 AC 135 ms
57,496 KB
testcase_08 AC 134 ms
57,436 KB
testcase_09 AC 136 ms
57,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner s = new Scanner (System.in);
        int X = s.nextInt();
        int Y = s.nextInt();
        int res = Y/X;
        int tt = Y%X;
        if (tt>0){
            res = Y/X+1;
        }
        System.out.println(res);
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
    }
}
0