結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2017-10-19 17:46:08 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 499 ms |
コンパイル使用メモリ | 56,260 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-21 07:36:39 |
合計ジャッジ時間 | 1,531 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 11 WA * 1 RE * 3 |
ソースコード
/* * 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; 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; }