結果

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

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
void fast_io() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
}

int main() {
    fast_io();
    string n;
    cin >> n;
    if (all_of(n.begin(), n.end(), [](char x) { return x == '9'; })) {
        cout << "Yes\n";
    } else {
        cout << "No\n";
    }
}
0