結果

問題 No.477 MVP
ユーザー tentententen
提出日時 2020-09-11 10:22:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 230 bytes
コンパイル時間 1,993 ms
コンパイル使用メモリ 71,496 KB
実行使用メモリ 56,440 KB
最終ジャッジ日時 2023-08-26 14:55:31
合計ジャッジ時間 4,448 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
56,192 KB
testcase_01 AC 110 ms
55,924 KB
testcase_02 AC 111 ms
56,024 KB
testcase_03 AC 110 ms
55,912 KB
testcase_04 AC 117 ms
55,876 KB
testcase_05 AC 117 ms
56,200 KB
testcase_06 AC 111 ms
56,440 KB
testcase_07 AC 109 ms
56,044 KB
testcase_08 AC 112 ms
56,056 KB
testcase_09 AC 109 ms
55,968 KB
testcase_10 AC 114 ms
55,560 KB
testcase_11 AC 112 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	long n = sc.nextLong();
    	long m = sc.nextLong();
    	System.out.println(n / (m + 1) + 1);
	}
}
0