結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
anta
|
| 提出日時 | 2018-06-15 22:21:11 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 382µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 919 ms |
| コンパイル使用メモリ | 180,088 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-23 14:37:42 |
| 合計ジャッジ時間 | 2,149 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
int H; int W;
while (~scanf("%d%d", &H, &W)) {
bool ans = false;
for (int i = 0; i < H; ++ i) {
char buf[101];
scanf("%s", buf);
string row = buf;
for (int j = 0; j <= W - 4; ++ j)
ans |= row.substr(j, 4) == "LOVE";
}
puts(ans ? "YES" : "NO");
}
}
anta