結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-28 22:17:46 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 494 bytes |
| 記録 | |
| コンパイル時間 | 560 ms |
| コンパイル使用メモリ | 64,572 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 23:11:10 |
| 合計ジャッジ時間 | 1,535 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
int main(int argc, char * argv[])
{
int n, m;
std::cin >> n >> m;
std::vector<std::string> lines;
lines.resize(m);
for (int i = 0; i < n; i++) {
std::cin >> lines[i];
}
for (auto&& s : lines) {
if (s.find("LOVE") != std::string::npos) {
std::cout << "YES" << std::endl;
return 0;
}
}
std::cout << "NO" << std::endl;
return 0;
}