結果
| 問題 | 
                            No.558 575検出するやつ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-03-31 00:45:48 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 268 bytes | 
| コンパイル時間 | 1,540 ms | 
| コンパイル使用メモリ | 159,544 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-14 02:59:48 | 
| 合計ジャッジ時間 | 2,572 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 13 RE * 2 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin >> s;
    int ans=0;
    for(int i=0; i<s.size()-2; i++){
        if(s[i]=='5'&&s[i+1]=='7'&&s[i+2]=='5') ans++;
    }
    if(ans==0) cout << "NO" << endl;
    else cout << "YES" << endl;
}