結果
| 問題 | 
                            No.558 575検出するやつ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-11-07 15:57:40 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 314 bytes | 
| コンパイル時間 | 577 ms | 
| コンパイル使用メモリ | 66,816 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-24 04:46:54 | 
| 合計ジャッジ時間 | 1,461 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 11 WA * 1 RE * 3 | 
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
    string s;
    cin >> s;
    for (int i = 0; i < s.length() - 3; i++) {
        if (s.substr(i, 3) == "575") {
            return cout << "YES" << endl, 0;
        }
    }
    cout << "NO" << endl;
    return 0;
}