結果

問題 No.558 575検出するやつ
ユーザー ilplrr
提出日時 2017-11-07 15:54:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 303 bytes
コンパイル時間 599 ms
コンパイル使用メモリ 66,932 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 04:46:43
合計ジャッジ時間 1,707 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 11 WA * 1 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0