結果
問題 | No.558 575検出するやつ |
ユーザー |
![]() |
提出日時 | 2017-08-26 01:28:31 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 483 ms |
コンパイル使用メモリ | 57,688 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 16:23:03 |
合計ジャッジ時間 | 1,200 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 14 WA * 1 |
ソースコード
#include<iostream>#include<vector>using namespace std;#define repeat(i,n) for(int i=0;i<(n);i++)int main(){string s; cin>> s;if(s.size()<3){ cout<< "NO"<< endl; return 0;}repeat(i, s.size()-3){if(s[i]=='5' and s[i+1]=='7' and s[i+2]=='5'){cout<< "YES"<< endl; return 0;}}cout<< "NO"<< endl;return 0;}