結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-08-25 22:27:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 623 ms |
コンパイル使用メモリ | 64,600 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 15:58:00 |
合計ジャッジ時間 | 1,525 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 13 RE * 2 |
ソースコード
#include <algorithm> #include <cstdlib> #include <iostream> #include <vector> #include <math.h> using namespace std; #define int long long signed main() { string s; cin >> s; bool f = false; for (int i = 0; i < s.size() - 2;i++) { if (s.substr(i, 3) == "575") { f = true; } } if (f) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }