結果

問題 No.558 575検出するやつ
ユーザー pinebooks
提出日時 2017-09-04 16:40:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 55,640 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-06 20:54:04
合計ジャッジ時間 1,200 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 2
other AC * 7 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

string S;

string solve() {
  for (int i = 0; i < (int)S.length() - 2; i++)
    if (S.substr(i, 3) == "575") return "YES";
  return "NO";
}

int main() {
  string S;
  cin >> S;
  cout << solve() << endl;
}
0