結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
Kura
|
| 提出日時 | 2019-02-17 19:10:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 54,752 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-01 15:11:36 |
| 合計ジャッジ時間 | 1,829 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 2 |
| other | AC * 5 WA * 8 RE * 2 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main() {
string S;
cin >> S;
for (int i = 0; i < S.length() - 2; i++) {
if (S[i] == '5'&&S[i + 1] == '7'&&S[i + 2] == '5') {
cout << "YES" << endl;
continue;
}
}
cout << "NO" << endl;
}
Kura