結果

問題 No.810 割った余りの個数
ユーザー tsunabittsunabit
提出日時 2019-07-13 20:56:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 3,264 ms
コンパイル使用メモリ 71,468 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-08-14 15:06:28
合計ジャッジ時間 9,030 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,780 KB
testcase_01 AC 126 ms
56,056 KB
testcase_02 AC 127 ms
56,100 KB
testcase_03 AC 125 ms
56,092 KB
testcase_04 AC 123 ms
55,840 KB
testcase_05 AC 125 ms
55,964 KB
testcase_06 AC 128 ms
55,524 KB
testcase_07 AC 124 ms
55,780 KB
testcase_08 AC 127 ms
55,936 KB
testcase_09 AC 125 ms
55,892 KB
testcase_10 AC 125 ms
55,940 KB
testcase_11 AC 123 ms
55,484 KB
testcase_12 AC 126 ms
55,820 KB
testcase_13 AC 126 ms
55,416 KB
testcase_14 AC 126 ms
55,936 KB
testcase_15 AC 126 ms
56,032 KB
testcase_16 AC 122 ms
55,716 KB
testcase_17 AC 128 ms
55,708 KB
testcase_18 AC 129 ms
55,972 KB
testcase_19 AC 124 ms
55,824 KB
testcase_20 AC 128 ms
55,720 KB
testcase_21 AC 124 ms
56,056 KB
testcase_22 AC 123 ms
56,180 KB
testcase_23 AC 121 ms
56,124 KB
testcase_24 AC 123 ms
55,924 KB
testcase_25 AC 123 ms
55,856 KB
testcase_26 AC 126 ms
56,008 KB
testcase_27 AC 125 ms
56,216 KB
testcase_28 AC 125 ms
55,704 KB
testcase_29 AC 127 ms
55,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No810 {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int l = sc.nextInt(), r = sc.nextInt(), m = sc.nextInt();
    	int o = m <= (r-l)? m : (r-l+1);
    	System.out.println(o);
    	
    }
}
0