結果

問題 No.810 割った余りの個数
ユーザー htensai
提出日時 2019-11-11 18:34:53
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 1,953 ms
コンパイル使用メモリ 74,240 KB
実行使用メモリ 41,652 KB
最終ジャッジ日時 2024-09-15 05:18:40
合計ジャッジ時間 6,895 ms
ジャッジサーバーID
(参考情報)
judge1 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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