結果
| 問題 | No.700 LOVE | 
| コンテスト | |
| ユーザー |  aaa | 
| 提出日時 | 2018-07-17 20:23:02 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 607 bytes | 
| コンパイル時間 | 918 ms | 
| コンパイル使用メモリ | 95,888 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-22 23:25:29 | 
| 合計ジャッジ時間 | 1,719 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 16 | 
ソースコード
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <map>
#include <iomanip>
#include <math.h> 
#include <stack>
#include <queue>
#include <bitset>
#include <cstdlib>
#include <tuple>
#include <cctype>
using namespace std;
int main() {
	int i, j, k;
	int n, m;
	vector<string>s(50);
	cin >> n >> m;
	for (i = 0; i < n; i++) {
		cin >> s[i];
	}
	
	for (i = 0; i < n; i++) {
		if (s[i].find("LOVE") != string::npos) {
			cout << "YES" << endl;
			return 0;
		}
	}
	cout << "NO" << endl;
	getchar();
	getchar();
	return 0;
}
            
            
            
        