結果
| 問題 |
No.558 575検出するやつ
|
| ユーザー |
uzumakiyorumunn
|
| 提出日時 | 2017-09-03 23:43:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 56,572 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 20:11:21 |
| 合計ジャッジ時間 | 1,590 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 13 RE * 2 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string S;
bool f;
cin>>S;
f=false;
for(int i=0;i<S.size()-2;i++){
if(S[i]=='5'&&S[i+1]=='7'&&S[i+2]=='5') f=true;
}
if(f) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
uzumakiyorumunn