結果

問題 No.2450 99-like Number
ユーザー viral8viral8
提出日時 2023-09-01 21:26:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 1,951 ms
コンパイル使用メモリ 71,820 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2023-09-01 21:26:21
合計ジャッジ時間 5,541 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,220 KB
testcase_01 AC 118 ms
55,328 KB
testcase_02 AC 117 ms
55,472 KB
testcase_03 AC 142 ms
55,552 KB
testcase_04 AC 118 ms
57,856 KB
testcase_05 AC 116 ms
55,340 KB
testcase_06 AC 117 ms
55,948 KB
testcase_07 AC 117 ms
55,924 KB
testcase_08 AC 117 ms
56,068 KB
testcase_09 AC 118 ms
55,756 KB
testcase_10 AC 116 ms
55,700 KB
testcase_11 AC 118 ms
56,108 KB
testcase_12 AC 119 ms
55,480 KB
testcase_13 AC 116 ms
55,560 KB
testcase_14 AC 119 ms
56,172 KB
testcase_15 AC 117 ms
55,676 KB
testcase_16 AC 118 ms
55,564 KB
testcase_17 AC 119 ms
55,588 KB
testcase_18 AC 118 ms
55,556 KB
testcase_19 AC 118 ms
55,580 KB
testcase_20 AC 142 ms
55,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		N = N.replace("9","");
		System.out.println(N.length()==0?"Yes":"No");
	}
}
0