結果
問題 | No.700 LOVE |
ユーザー |
|
提出日時 | 2021-03-29 11:30:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 1,671 ms |
コンパイル使用メモリ | 158,296 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 09:43:37 |
合計ジャッジ時間 | 2,193 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin >> n >> m; string s; int ans=0; for(int i=0; i<n; i++){ cin >> s; for(int i=0; i<m-3; i++){ if(s[i]=='L'&&s[i+1]=='O'&&s[i+2]=='V'&&s[i+3]=='E') ans++; } } if(ans!=0) cout << "YES" << endl; else cout << "NO" << endl; }