結果
問題 |
No.558 575検出するやつ
|
ユーザー |
|
提出日時 | 2017-12-04 23:48:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 493 bytes |
コンパイル時間 | 567 ms |
コンパイル使用メモリ | 54,996 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-28 04:34:45 |
合計ジャッジ時間 | 1,435 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 5 |
other | WA * 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; }