結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-24 14:45:07 |
| 言語 | C (gcc 15.3.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 796µs | |
| コード長 | 461 bytes |
| 記録 | |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 38,084 KB |
| 実行使用メモリ | 9,912 KB |
| 最終ジャッジ日時 | 2026-09-24 14:45:12 |
| 合計ジャッジ時間 | 1,725 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <stdio.h>
#include <string.h>
int main(void)
{
int n, m;
char s[50][51];
int judge = 0;
int i, j;
scanf("%d %d", &n, &m);
for (i = 0; i < n; i++) {
scanf("%s", &s[i]);
}
for (i = 0; i < n; i++) {
for (j = 0; j < strlen(s[i]) - 3; j++) {
if (s[i][j] == 'L' && s[i][j + 1] == 'O' && s[i][j + 2] == 'V' && s[i][j + 3] == 'E') {
judge = 1;
goto print;
}
}
}
print:
printf("%s\n", judge ? "YES" : "NO");
return 0;
}