結果

問題 No.388 階段 (1)
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-04 20:11:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 3,758 ms
コンパイル使用メモリ 72,132 KB
実行使用メモリ 57,720 KB
最終ジャッジ日時 2023-09-12 16:06:19
合計ジャッジ時間 6,170 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
54,052 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 125 ms
55,952 KB
testcase_05 AC 124 ms
57,608 KB
testcase_06 AC 124 ms
55,884 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 121 ms
57,720 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No388 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = sc.nextInt();
		int f = sc.nextInt();
		if(s % f == 0) {
			System.out.println(s / f + 1);
		}else {
			System.out.println(s / f);
		}
	}
}
0