結果
問題 | No.2450 99-like Number |
ユーザー |
![]() |
提出日時 | 2023-09-08 14:46:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 431 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 39,492 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 07:50:51 |
合計ジャッジ時間 | 1,109 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
/* -*- coding: utf-8 -*- * * 2450.cc: No.2450 99-like Number - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* constant */ const int MAX_N = 100; /* typedef */ /* global variables */ char s[MAX_N + 4]; /* subroutines */ /* main */ int main() { scanf("%s", s); for (char *cpt = s; *cpt; cpt++) if (*cpt != '9') { puts("No"); return 0; } puts("Yes"); return 0; }