結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-08-25 22:27:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 339 bytes |
コンパイル時間 | 532 ms |
コンパイル使用メモリ | 56,132 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-15 15:58:14 |
合計ジャッジ時間 | 1,585 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 13 RE * 2 |
ソースコード
#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; 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; }