結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-15 22:23:24 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 396µs | |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 915 ms |
| コンパイル使用メモリ | 180,048 KB |
| 実行使用メモリ | 9,800 KB |
| 最終ジャッジ日時 | 2026-08-23 14:38:36 |
| 合計ジャッジ時間 | 2,117 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
int main() {
int n, m;
cin >> n >> m;
bool b = false;
rep(_i,n) {
string s;
cin >> s;
if(s.find("LOVE")!=string::npos) {
b = true;
}
}
if(b) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}