結果
問題 |
No.558 575検出するやつ
|
ユーザー |
|
提出日時 | 2017-10-23 21:31:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 623 ms |
コンパイル使用メモリ | 67,208 KB |
最終ジャッジ日時 | 2025-01-05 03:26:11 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 13 RE * 2 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { string s; cin >> s; for (int i = 0; i < s.size() - 2; i++) { if (s.substr(i, 3) == "575") { cout << "YES\n"; return 0; } } cout << "NO\n"; return 0; }