結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-09-07 19:27:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 400 ms |
コンパイル使用メモリ | 55,284 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 11:07:26 |
合計ジャッジ時間 | 1,465 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 13 RE * 2 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string S; int b = 0; cin >> S; for (int a = 0; a < S.size()-2; a++) if (S[a] == '5' && S[a + 1] == '7' && S[a+2] == '5') b = 1; if (b == 1)cout << "YES" << endl; else cout << "NO" << endl; return 0; }