結果
| 問題 | No.700 LOVE | 
| コンテスト | |
| ユーザー |  delt | 
| 提出日時 | 2019-03-04 22:17:43 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 367 bytes | 
| コンパイル時間 | 567 ms | 
| コンパイル使用メモリ | 60,752 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-22 23:36:10 | 
| 合計ジャッジ時間 | 1,176 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 16 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int main(void){
  int n, m;
  cin >> n >> m;
  string s[n];
  for(int i = 0; i < n; i++) cin >> s[i];
  for(int i = 0; i < n; i++){
    if(s[i].find("LOVE") != string::npos){
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
            
            
            
        