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