結果
| 問題 |
No.558 575検出するやつ
|
| ユーザー |
Naoyk1212
|
| 提出日時 | 2017-10-19 17:47:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 399 bytes |
| コンパイル時間 | 540 ms |
| コンパイル使用メモリ | 55,948 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 07:36:44 |
| 合計ジャッジ時間 | 1,157 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 14 WA * 1 |
ソースコード
/*
* a.cpp
*
* Created on: 2017/10/19
* Author: n-adachi
*/
#include<iostream>
int main(){
std::string s;
std::cin >> s;
std::string a = "575";
bool ans = false;
if(s.length() <= 2){
std::cout << "NO" << std::endl;
return 0;
}
for(int i = 0; i < s.length() - 3; i++){
if(s.substr(i, 3) == a)ans = true;
}
std::cout << (ans ? "YES" : "NO") << std::endl;
return 0;
}
Naoyk1212