結果

問題 No.810 割った余りの個数
ユーザー htensaihtensai
提出日時 2019-11-11 18:34:53
言語 Java19
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 1,955 ms
コンパイル使用メモリ 71,892 KB
実行使用メモリ 56,368 KB
最終ジャッジ日時 2023-10-13 08:08:21
合計ジャッジ時間 6,954 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,008 KB
testcase_01 AC 113 ms
53,760 KB
testcase_02 AC 119 ms
55,848 KB
testcase_03 AC 116 ms
56,368 KB
testcase_04 AC 113 ms
56,252 KB
testcase_05 AC 110 ms
56,208 KB
testcase_06 AC 113 ms
55,912 KB
testcase_07 AC 114 ms
55,704 KB
testcase_08 AC 116 ms
55,684 KB
testcase_09 AC 117 ms
56,084 KB
testcase_10 AC 113 ms
55,852 KB
testcase_11 AC 112 ms
55,860 KB
testcase_12 AC 106 ms
55,872 KB
testcase_13 AC 110 ms
56,088 KB
testcase_14 AC 110 ms
56,028 KB
testcase_15 AC 111 ms
55,944 KB
testcase_16 AC 107 ms
56,024 KB
testcase_17 AC 111 ms
56,008 KB
testcase_18 AC 108 ms
55,712 KB
testcase_19 AC 112 ms
55,848 KB
testcase_20 AC 108 ms
55,612 KB
testcase_21 AC 108 ms
55,676 KB
testcase_22 AC 108 ms
55,564 KB
testcase_23 AC 116 ms
55,608 KB
testcase_24 AC 113 ms
56,072 KB
testcase_25 AC 125 ms
55,924 KB
testcase_26 AC 123 ms
55,600 KB
testcase_27 AC 109 ms
56,148 KB
testcase_28 AC 110 ms
55,800 KB
testcase_29 AC 109 ms
55,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    static TreeSet<Integer> primes;
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int r = sc.nextInt();
		int m = sc.nextInt();
		System.out.println(Math.min(m, r - l + 1));
	}
}
0