結果
| 問題 | No.558 575検出するやつ |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2023-07-19 00:33:10 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 442 bytes |
| 記録 | |
| コンパイル時間 | 1,268 ms |
| コンパイル使用メモリ | 210,752 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-01 19:51:46 |
| 合計ジャッジ時間 | 2,195 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
int main() {
string s;
cin >> s;
rep(i, (int) s.size() - 2) {
string t = s.substr(i, 3);
if (t == "575") {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
a01sa01to