結果

問題 No.810 割った余りの個数
ユーザー kohaku_kohaku
提出日時 2019-04-12 21:52:30
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 2,122 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-09-14 18:15:11
合計ジャッジ時間 7,004 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

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-l+1, m);
        System.out.println(ans);
    }
}
0