結果
| 問題 |
No.2450 99-like Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-01 21:26:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 334 bytes |
| コンパイル時間 | 2,085 ms |
| コンパイル使用メモリ | 160,224 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-03 07:19:28 |
| 合計ジャッジ時間 | 2,320 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
#define REP(i,n) for(int i=0;i<int(n);i++)
int main(){
string N;
cin >> N;
bool f=true;
REP(i,N.size()){
if(N[i]!='9'){
f=false;
break;
}
}
if(f) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}