結果

問題 No.2450 99-like Number
ユーザー kusagame12kusagame12
提出日時 2023-11-25 16:14:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 493 bytes
コンパイル時間 2,094 ms
コンパイル使用メモリ 74,736 KB
実行使用メモリ 54,000 KB
最終ジャッジ日時 2023-11-25 16:14:58
合計ジャッジ時間 4,380 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,916 KB
testcase_01 AC 51 ms
53,988 KB
testcase_02 AC 51 ms
53,988 KB
testcase_03 AC 56 ms
54,000 KB
testcase_04 AC 62 ms
53,988 KB
testcase_05 AC 52 ms
53,984 KB
testcase_06 AC 51 ms
53,964 KB
testcase_07 AC 50 ms
52,044 KB
testcase_08 AC 50 ms
53,992 KB
testcase_09 AC 51 ms
53,992 KB
testcase_10 AC 52 ms
53,972 KB
testcase_11 AC 52 ms
53,992 KB
testcase_12 AC 52 ms
53,984 KB
testcase_13 AC 51 ms
53,992 KB
testcase_14 AC 52 ms
53,992 KB
testcase_15 AC 52 ms
53,976 KB
testcase_16 AC 51 ms
53,976 KB
testcase_17 AC 52 ms
53,992 KB
testcase_18 AC 51 ms
53,992 KB
testcase_19 AC 51 ms
53,956 KB
testcase_20 AC 50 ms
53,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        
        for(int i = 0 ; i < n.length() ; i++){
            char c = n.charAt(i);
            if(c != '9'){
                System.out.print("No");
                return;
            }
        }
        
        System.out.print("Yes");

    }

}
0