結果
| 問題 | 
                            No.558 575検出するやつ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Kura
                         | 
                    
| 提出日時 | 2019-02-17 19:12:12 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 261 bytes | 
| コンパイル時間 | 422 ms | 
| コンパイル使用メモリ | 55,912 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-10-01 15:13:15 | 
| 合計ジャッジ時間 | 1,340 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 13 RE * 2 | 
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main() {
	string S;
	cin >> S;
	for (int i = 0; i < S.length() - 2; i++) {
		if (S[i] == '5'&&S[i + 1] == '7'&&S[i + 2] == '5') {
			cout << "YES" << endl;
			return 0;
		}
	}
	cout << "NO" << endl;
}
            
            
            
        
            
Kura