結果

問題 No.773 コンテスト
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-12 19:09:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 71,772 KB
実行使用メモリ 56,636 KB
最終ジャッジ日時 2023-10-11 10:59:50
合計ジャッジ時間 6,220 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,920 KB
testcase_01 AC 123 ms
56,048 KB
testcase_02 AC 123 ms
55,808 KB
testcase_03 AC 122 ms
55,880 KB
testcase_04 AC 122 ms
56,068 KB
testcase_05 AC 121 ms
56,388 KB
testcase_06 AC 121 ms
56,152 KB
testcase_07 AC 121 ms
56,148 KB
testcase_08 AC 119 ms
56,516 KB
testcase_09 AC 118 ms
55,576 KB
testcase_10 AC 120 ms
55,724 KB
testcase_11 AC 119 ms
55,888 KB
testcase_12 AC 121 ms
55,640 KB
testcase_13 AC 122 ms
55,644 KB
testcase_14 AC 120 ms
56,012 KB
testcase_15 AC 120 ms
56,108 KB
testcase_16 AC 119 ms
55,740 KB
testcase_17 AC 122 ms
56,164 KB
testcase_18 AC 120 ms
56,132 KB
testcase_19 AC 119 ms
55,852 KB
testcase_20 AC 120 ms
55,972 KB
testcase_21 AC 125 ms
56,636 KB
testcase_22 AC 125 ms
56,352 KB
testcase_23 AC 123 ms
55,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int a = sc.nextInt(); int b = sc.nextInt();
		int ans = 3;
		if (a<=23 && 23<=b) ans--;
		if (a<=24 && 24<=b) ans--;
		if (a<=25 && 25<=b) ans--;
		System.out.println(ans);
		
	}
}
0