結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-17 15:33:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 473 bytes |
| コンパイル時間 | 2,225 ms |
| コンパイル使用メモリ | 192,728 KB |
| 最終ジャッジ日時 | 2025-01-08 18:12:46 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// #define DEBUG
int main()
{
#ifdef DEBUG
cout << "DEBUG MODE" << endl;
ifstream in("input.txt"); //for debug
cin.rdbuf(in.rdbuf()); //for debug
#endif
string s, ans;
ans = "NO";
cin >> s;
int n = s.length();
for (int i = 0; i < n - 2; i++){
if (s.substr(i, 3) == "575"){
ans = "YES";
}
}
cout << ans << endl;
return 0;
}
Konton7