結果
| 問題 | No.558 575検出するやつ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-04 23:48:07 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 493 bytes |
| 記録 | |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 71,084 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-10-01 06:25:48 |
| 合計ジャッジ時間 | 1,946 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 5 |
| other | WA * 15 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string sent;
cin >> sent;
int mark = 0;
int num = sent.size();
for(int i = 0; i < num; i++){
if(sent[i] == '5'){
if(sent[i+1] == '7'){
if(sent[i+2] == '5'){
cout << "Yes" << endl;
mark = 1;
break;
}
}
}
}
if(mark == 0) cout << "No" << endl;
return 0;
}