結果

問題 No.2450 99-like Number
ユーザー ks2mks2m
提出日時 2023-09-01 23:05:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 3,784 ms
コンパイル使用メモリ 72,552 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-09-01 23:05:51
合計ジャッジ時間 7,591 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,624 KB
testcase_01 AC 121 ms
55,596 KB
testcase_02 AC 117 ms
55,588 KB
testcase_03 AC 120 ms
55,448 KB
testcase_04 AC 120 ms
55,444 KB
testcase_05 AC 121 ms
53,928 KB
testcase_06 AC 120 ms
55,548 KB
testcase_07 AC 119 ms
56,428 KB
testcase_08 AC 124 ms
55,692 KB
testcase_09 AC 122 ms
55,840 KB
testcase_10 AC 122 ms
55,740 KB
testcase_11 AC 122 ms
55,712 KB
testcase_12 AC 131 ms
55,896 KB
testcase_13 AC 123 ms
55,680 KB
testcase_14 AC 120 ms
55,492 KB
testcase_15 AC 121 ms
55,552 KB
testcase_16 AC 120 ms
56,156 KB
testcase_17 AC 123 ms
55,632 KB
testcase_18 AC 122 ms
55,748 KB
testcase_19 AC 119 ms
55,896 KB
testcase_20 AC 121 ms
55,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		sc.close();

		for (int i = 0; i < s.length; i++) {
			if (s[i] != '9') {
				System.out.println("No");
				return;
			}
		}
		System.out.println("Yes");
	}
}
0