結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー CecilCecil
提出日時 2022-12-20 16:12:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 454 bytes
コンパイル時間 2,530 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 56,064 KB
最終ジャッジ日時 2023-08-11 10:20:01
合計ジャッジ時間 6,721 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,712 KB
testcase_01 AC 120 ms
55,464 KB
testcase_02 AC 124 ms
55,656 KB
testcase_03 AC 122 ms
56,032 KB
testcase_04 AC 120 ms
55,480 KB
testcase_05 AC 122 ms
55,508 KB
testcase_06 AC 120 ms
55,660 KB
testcase_07 AC 121 ms
55,312 KB
testcase_08 AC 123 ms
55,476 KB
testcase_09 AC 120 ms
55,508 KB
testcase_10 AC 119 ms
55,308 KB
testcase_11 AC 118 ms
55,916 KB
testcase_12 AC 120 ms
55,952 KB
testcase_13 AC 120 ms
56,016 KB
testcase_14 AC 122 ms
56,056 KB
testcase_15 AC 123 ms
55,776 KB
testcase_16 AC 122 ms
55,840 KB
testcase_17 AC 121 ms
53,420 KB
testcase_18 AC 125 ms
55,896 KB
testcase_19 AC 121 ms
55,720 KB
testcase_20 AC 125 ms
55,720 KB
testcase_21 AC 122 ms
55,804 KB
testcase_22 AC 123 ms
55,980 KB
testcase_23 AC 120 ms
54,108 KB
testcase_24 AC 123 ms
55,836 KB
testcase_25 AC 123 ms
56,064 KB
testcase_26 AC 121 ms
55,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

		int n = scan.hasNextInt() ? scan.nextInt() : -1;
		double c = Math.pow(10, 9);
		if (n > c || n < 1) {
			System.out.println("入力エラー");
			return;
		}

		if (Integer.toString(n).contains("4") && Integer.toString(n).contains("6") ) {
			System.out.println("Beautiful");
		} else {
			System.out.println("...");
		}
	}
}
0