結果
問題 |
No.558 575検出するやつ
|
ユーザー |
|
提出日時 | 2021-03-31 00:47:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 1,319 ms |
コンパイル使用メモリ | 159,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-14 03:01:20 |
合計ジャッジ時間 | 2,060 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; int ans=0; for(int i=0; i<s.size(); i++){ if(s[i]=='5'&&s[i+1]=='7'&&s[i+2]=='5') ans++; } if(ans==0) cout << "NO" << endl; else cout << "YES" << endl; }