結果

問題 No.810 割った余りの個数
ユーザー GrenacheGrenache
提出日時 2019-04-26 17:00:15
言語 Java19
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 593 bytes
コンパイル時間 3,386 ms
コンパイル使用メモリ 73,112 KB
実行使用メモリ 56,456 KB
最終ジャッジ日時 2023-08-16 05:26:34
合計ジャッジ時間 8,062 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
55,764 KB
testcase_01 AC 119 ms
55,888 KB
testcase_02 AC 117 ms
55,504 KB
testcase_03 AC 121 ms
55,976 KB
testcase_04 AC 121 ms
55,784 KB
testcase_05 AC 119 ms
56,036 KB
testcase_06 AC 121 ms
55,808 KB
testcase_07 AC 119 ms
56,456 KB
testcase_08 AC 115 ms
56,220 KB
testcase_09 AC 117 ms
55,768 KB
testcase_10 AC 117 ms
53,924 KB
testcase_11 AC 117 ms
55,744 KB
testcase_12 AC 117 ms
55,788 KB
testcase_13 AC 113 ms
55,672 KB
testcase_14 AC 118 ms
55,788 KB
testcase_15 AC 114 ms
56,084 KB
testcase_16 AC 117 ms
55,488 KB
testcase_17 AC 118 ms
55,868 KB
testcase_18 AC 117 ms
55,664 KB
testcase_19 AC 113 ms
55,716 KB
testcase_20 AC 113 ms
55,800 KB
testcase_21 AC 114 ms
55,792 KB
testcase_22 AC 116 ms
55,488 KB
testcase_23 AC 113 ms
55,788 KB
testcase_24 AC 117 ms
55,724 KB
testcase_25 AC 116 ms
55,488 KB
testcase_26 AC 123 ms
56,080 KB
testcase_27 AC 117 ms
55,756 KB
testcase_28 AC 113 ms
55,764 KB
testcase_29 AC 115 ms
56,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.Scanner;


public class Main_yukicoder810 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int l = sc.nextInt();
		int r = sc.nextInt();
		int m = sc.nextInt();

		pr.println(Math.min(r - l + 1, m));
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
}
0