結果

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

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int r = sc.nextInt();
		int m = sc.nextInt();
		sc.close();

		System.out.println(Math.min(r - l + 1, m));
	}
}
0