結果

問題 No.1672 404 Not Found
ユーザー CecilCecil
提出日時 2022-12-20 16:06:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 429 bytes
コンパイル時間 1,994 ms
コンパイル使用メモリ 74,020 KB
実行使用メモリ 41,384 KB
最終ジャッジ日時 2024-04-29 02:50:14
合計ジャッジ時間 4,654 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
39,976 KB
testcase_01 AC 130 ms
41,200 KB
testcase_02 AC 132 ms
40,972 KB
testcase_03 AC 132 ms
41,088 KB
testcase_04 AC 127 ms
41,112 KB
testcase_05 AC 115 ms
40,144 KB
testcase_06 AC 128 ms
40,904 KB
testcase_07 AC 130 ms
41,304 KB
testcase_08 AC 127 ms
41,152 KB
testcase_09 AC 130 ms
41,292 KB
testcase_10 AC 131 ms
40,896 KB
testcase_11 AC 129 ms
41,384 KB
testcase_12 AC 134 ms
41,120 KB
testcase_13 AC 134 ms
41,264 KB
testcase_14 AC 132 ms
41,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);

		int a = scan.hasNextInt() ? scan.nextInt() : -1;

		if (a > 599 || a < 100) {
			System.out.println("入力エラー1");
			return;
		}

		if (Integer.toString(a).charAt(0) == '4'  || Integer.toString(a).charAt(0) == '5') {
			System.out.println("Yes");
		} else{
			System.out.println("No");
		}

	}
}
0