結果

問題 No.810 割った余りの個数
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-04-12 21:51:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 2,751 ms
コンパイル使用メモリ 71,200 KB
実行使用メモリ 56,208 KB
最終ジャッジ日時 2023-10-12 19:48:10
合計ジャッジ時間 7,913 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,860 KB
testcase_01 AC 125 ms
55,828 KB
testcase_02 WA -
testcase_03 AC 127 ms
55,968 KB
testcase_04 AC 124 ms
56,096 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 127 ms
55,976 KB
testcase_12 AC 127 ms
56,164 KB
testcase_13 WA -
testcase_14 AC 126 ms
55,716 KB
testcase_15 AC 126 ms
55,596 KB
testcase_16 AC 127 ms
55,720 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 124 ms
55,748 KB
testcase_20 AC 125 ms
55,748 KB
testcase_21 AC 126 ms
56,076 KB
testcase_22 AC 128 ms
55,840 KB
testcase_23 AC 128 ms
55,912 KB
testcase_24 AC 128 ms
55,892 KB
testcase_25 AC 128 ms
56,088 KB
testcase_26 AC 127 ms
55,836 KB
testcase_27 WA -
testcase_28 AC 127 ms
55,716 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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