結果

問題 No.558 575検出するやつ
ユーザー hiro_ei1812hiro_ei1812
提出日時 2019-08-31 22:55:53
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 55,932 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-25 19:39:49
合計ジャッジ時間 1,484 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main(){
	string str;
	int len,i;

	cin>>str;

	len=str.length();  //文字列の長さを取得

	for(i=0;i<len;i++){
		if(str[i]=='5' && str[i+1]=='7' && str[i+2]=='5'){
			cout<<"YES"<<endl;
			return 0;
		}
	}
	
	cout<<"NO"<<endl;

	return 0;
}
0