結果

問題 No.2450 99-like Number
コンテスト
ユーザー hiro71687k
提出日時 2023-09-01 21:21:02
言語 C++17
(gcc 15.2.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 426 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,933 ms
コンパイル使用メモリ 251,424 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-12-26 12:02:58
合計ジャッジ時間 4,150 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll=long long;
using ld=long double;
ld pie=3.141592653589793;
ll mod=1000000007;
ll inf=1009999999999999990;
int main(){
    string s;
    cin >> s;
    for (ll i = 0; i < s.size(); i++)
    {
        if (s[i]!='9')
        {
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
}
0