結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-08-25 22:28:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 425 bytes |
コンパイル時間 | 537 ms |
コンパイル使用メモリ | 66,660 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 15:58:23 |
合計ジャッジ時間 | 1,235 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 3 |
other | AC * 8 WA * 7 |
ソースコード
#include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <string> #include <vector> #include <iostream> #include <stdlib.h> using namespace std; int main() { string s; cin >> s; bool ans; for(int i=0;i<s.length()-2 && !ans;i++) if( s[i] == '5' && s[i+1] == '7' && s[i+2] == '5' ) ans = true; if(ans) cout << "YES"; else cout << "NO"; cout << endl; return 0; }