結果

問題 No.558 575検出するやつ
ユーザー Kura
提出日時 2019-02-17 19:11:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 261 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 55,376 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-01 15:12:52
合計ジャッジ時間 1,459 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 13 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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