結果
問題 | No.558 575検出するやつ |
ユーザー | hamray |
提出日時 | 2017-11-16 01:34:58 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 59,764 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 04:17:52 |
合計ジャッジ時間 | 1,217 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
ソースコード
#include <iostream> #include <cstdlib> #include <string> #include <vector> #include <algorithm> using namespace std; int main(){ string S; cin >> S; for(int i = 0; i < S.size(); i++){ if(S.find("575") == -1){ cout << "NO" << endl; break; }else{ cout << "YES" << endl; break; } } return 0; }