結果
| 問題 | No.558 575検出するやつ |
| コンテスト | |
| ユーザー |
RTIA1227
|
| 提出日時 | 2017-08-25 22:37:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 356 bytes |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 55,828 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 16:03:09 |
| 合計ジャッジ時間 | 1,042 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string x;
cin >> x;
bool n = false;
for(int i = 0; i < x.size()-2 && x.size() != 1; i++){
if(x[i] == '5' && x[i+1] == '7' && x[i+2] == '5'){
n = true;
break;
}
}
if(n){
cout << "YES";
}else{
cout << "NO";
}
return 0;
}
RTIA1227