結果
問題 | No.773 コンテスト |
ユーザー |
|
提出日時 | 2019-04-26 15:42:58 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 2,000 ms |
コード長 | 686 bytes |
コンパイル時間 | 3,885 ms |
コンパイル使用メモリ | 74,760 KB |
実行使用メモリ | 41,688 KB |
最終ジャッジ日時 | 2024-11-24 13:04:33 |
合計ジャッジ時間 | 7,420 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import java.io.*;import java.util.Scanner;public class Main_yukicoder773 {private static Scanner sc;private static Printer pr;private static void solve() {int a = sc.nextInt();int b = sc.nextInt();if (b < 23 || a > 25) {pr.println(3);} else {int min = Math.max(23, a);int max = Math.min(25, b);pr.println(3 - (max - min + 1));}}// ---------------------------------------------------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);}}}