結果

問題 No.388 階段 (1)
ユーザー gomagoma
提出日時 2017-09-14 21:24:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 2,361 ms
コンパイル使用メモリ 73,968 KB
実行使用メモリ 41,444 KB
最終ジャッジ日時 2024-04-25 09:27:10
合計ジャッジ時間 4,151 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
41,196 KB
testcase_01 AC 102 ms
40,516 KB
testcase_02 AC 115 ms
41,392 KB
testcase_03 AC 120 ms
41,024 KB
testcase_04 AC 115 ms
41,180 KB
testcase_05 AC 115 ms
41,112 KB
testcase_06 AC 112 ms
41,252 KB
testcase_07 AC 109 ms
41,080 KB
testcase_08 AC 101 ms
40,132 KB
testcase_09 AC 117 ms
41,356 KB
testcase_10 AC 112 ms
39,784 KB
testcase_11 AC 109 ms
40,328 KB
testcase_12 AC 114 ms
40,384 KB
testcase_13 AC 109 ms
41,444 KB
testcase_14 AC 114 ms
41,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int ans = 0;
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int F = sc.nextInt();
		ans = S / F;
		System.out.println(ans + 1);

	}
}
0