結果

問題 No.558 575検出するやつ
ユーザー furafura
提出日時 2020-03-17 00:30:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 2,610 ms
コンパイル使用メモリ 191,876 KB
最終ジャッジ日時 2025-01-09 07:28:39
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

int main(){
	string s; cin>>s;
	int n=s.length();
	rep(i,n-2) if(s.substr(i,3)=="575") return puts("YES"),0;
	puts("NO");
	return 0;
}
0