結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
東前頭十一枚目
|
| 提出日時 | 2020-03-13 18:12:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 310 bytes |
| コンパイル時間 | 1,504 ms |
| コンパイル使用メモリ | 165,776 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 11:46:37 |
| 合計ジャッジ時間 | 2,233 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 15 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
string s; cin >> s;
int n = s.size();
bool ans = false;
for(int i = 0; i + 2 < n; ++i) {
if(s[i] == '5') {
if(s[i + 1] == '7') {
if(s[i + 2] == '5') {
ans = true;
}
}
}
}
cout << (ans ? "YES" : "NO") << '\n';
return 0;
}
東前頭十一枚目