結果
問題 | No.2450 99-like Number |
ユーザー | kolvlmam3 |
提出日時 | 2023-09-01 21:21:52 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 1,917 ms |
コンパイル使用メモリ | 191,788 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-03 07:09:38 |
合計ジャッジ時間 | 2,741 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> #define endl '\n' typedef long long ll; using namespace std; int main(void) { ios::sync_with_stdio(false); cin.tie(0); string n; cin >> n; string ans = "Yes"; for (int i = 0; i < n.size(); i++) { if (n[i] != '9') ans = "No"; } cout << ans << endl; return 0; }