結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-09-04 16:38:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 537 ms |
コンパイル使用メモリ | 57,248 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-06 20:54:02 |
合計ジャッジ時間 | 3,860 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 5 |
other | RE * 15 |
ソースコード
#include <iostream> #include <string> using namespace std; string S; string solve() { for (int i = 0; i < S.length() - 2; i++) if (S.substr(i, 3) == "575") return "YES"; return "NO"; } int main() { string S; cin >> S; cout << solve() << endl; }