結果

問題 No.388 階段 (1)
ユーザー ダンネックダンネック
提出日時 2020-05-24 12:45:13
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 3,369 ms
コンパイル使用メモリ 74,632 KB
実行使用メモリ 41,492 KB
最終ジャッジ日時 2024-04-19 11:57:46
合計ジャッジ時間 6,374 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
41,280 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 128 ms
41,356 KB
testcase_05 AC 127 ms
41,100 KB
testcase_06 AC 116 ms
40,456 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 118 ms
40,556 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;
public class length{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int f = a / b;
	    if(a % b ==0){
	        System.out.println(f + 1);
	    }else{
	        System.out.println(f);
	    }
		sc.close();
    }
}
0