結果

問題 No.810 割った余りの個数
ユーザー ks2mks2m
提出日時 2019-04-12 21:23:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 1,984 ms
コンパイル使用メモリ 72,444 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-10-12 18:25:53
合計ジャッジ時間 7,110 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,452 KB
testcase_01 AC 123 ms
55,912 KB
testcase_02 AC 122 ms
56,016 KB
testcase_03 AC 124 ms
55,996 KB
testcase_04 AC 121 ms
55,692 KB
testcase_05 AC 121 ms
55,716 KB
testcase_06 AC 122 ms
56,100 KB
testcase_07 AC 123 ms
55,848 KB
testcase_08 AC 123 ms
56,284 KB
testcase_09 AC 122 ms
56,200 KB
testcase_10 AC 124 ms
56,064 KB
testcase_11 AC 124 ms
55,672 KB
testcase_12 AC 124 ms
56,304 KB
testcase_13 AC 124 ms
56,252 KB
testcase_14 AC 122 ms
55,888 KB
testcase_15 AC 123 ms
55,788 KB
testcase_16 AC 122 ms
55,632 KB
testcase_17 AC 126 ms
55,672 KB
testcase_18 AC 125 ms
56,004 KB
testcase_19 AC 123 ms
55,624 KB
testcase_20 AC 125 ms
56,160 KB
testcase_21 AC 121 ms
55,628 KB
testcase_22 AC 121 ms
56,240 KB
testcase_23 AC 123 ms
55,692 KB
testcase_24 AC 121 ms
55,916 KB
testcase_25 AC 121 ms
55,716 KB
testcase_26 AC 121 ms
55,920 KB
testcase_27 AC 122 ms
55,792 KB
testcase_28 AC 121 ms
55,712 KB
testcase_29 AC 124 ms
56,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int r = sc.nextInt();
		int m = sc.nextInt();
		sc.close();

		System.out.println(Math.min(r - l + 1, m));
	}
}
0