結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-04 23:49:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 493 bytes |
| コンパイル時間 | 415 ms |
| コンパイル使用メモリ | 55,252 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 04:34:46 |
| 合計ジャッジ時間 | 1,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string sent;
cin >> sent;
int mark = 0;
int num = sent.size();
for(int i = 0; i < num; i++){
if(sent[i] == '5'){
if(sent[i+1] == '7'){
if(sent[i+2] == '5'){
cout << "YES" << endl;
mark = 1;
break;
}
}
}
}
if(mark == 0) cout << "NO" << endl;
return 0;
}