結果
| 問題 |
No.810 割った余りの個数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-26 17:00:15 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 141 ms / 2,000 ms |
| コード長 | 593 bytes |
| コンパイル時間 | 3,522 ms |
| コンパイル使用メモリ | 74,804 KB |
| 実行使用メモリ | 54,384 KB |
| 最終ジャッジ日時 | 2024-11-24 15:34:09 |
| 合計ジャッジ時間 | 8,905 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
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);
}
}
}