結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-08 19:21:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 351 bytes |
| コンパイル時間 | 621 ms |
| コンパイル使用メモリ | 61,396 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 05:10:21 |
| 合計ジャッジ時間 | 1,359 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include <iostream>
#include <math.h>
#include <cstdio>
#include <algorithm>
#include <string>
#include <string.h>
using namespace std;
const int MAX_N=10000;
string s;
int main(){
cin >> s;
for(int i=1;i<s.length()-1;i++) if(s[i-1]=='5'&&s[i]=='7'&&s[i+1]=='5'){
cout << "YES" << endl;
return 0;
}
cout << "NO " << endl;
return 0;
}