結果

問題 No.810 割った余りの個数
ユーザー kohaku_kohaku
提出日時 2019-04-12 21:51:33
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 5,628 ms
コンパイル使用メモリ 74,008 KB
実行使用メモリ 56,232 KB
最終ジャッジ日時 2024-09-14 18:11:07
合計ジャッジ時間 7,153 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 WA * 12
権限があれば一括ダウンロードができます

ソースコード

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