結果

問題 No.1672 404 Not Found
ユーザー Cecil
提出日時 2022-12-20 16:06:39
言語 Java
(openjdk 23)
結果
AC  
実行時間 148 ms / 1,000 ms
コード長 429 bytes
コンパイル時間 2,540 ms
コンパイル使用メモリ 74,504 KB
実行使用メモリ 41,512 KB
最終ジャッジ日時 2024-11-18 01:52:13
合計ジャッジ時間 4,888 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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