結果

問題 No.2450 99-like Number
ユーザー zezerozezero
提出日時 2023-09-01 21:30:16
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 634 bytes
コンパイル時間 1,218 ms
コンパイル使用メモリ 101,268 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-03 07:25:46
合計ジャッジ時間 2,171 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <set>
#include <map>
#include <queue>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i=0;i < (int)(n);i++)

void sol(){
    string s;
    cin >> s;
    int n = s.size();
    bool yes = true;
    for (int i = 0; i < n;i++){
        if (s[i] != '9'){
            yes = false;
            break;
        }
    }
    if (yes) cout << "Yes\n";
    else cout << "No\n";
    return;
}

int main(){
    int test = 1;
    //cin >> test;
    while(test--){
        sol();
    }
}
0