結果

問題 No.700 LOVE
ユーザー nadarenadare
提出日時 2018-06-15 22:57:44
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 9,252 KB
最終ジャッジ日時 2023-09-30 05:20:23
合計ジャッジ時間 1,321 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
9,184 KB
testcase_01 AC 22 ms
9,128 KB
testcase_02 AC 22 ms
9,124 KB
testcase_03 AC 21 ms
9,192 KB
testcase_04 AC 22 ms
9,048 KB
testcase_05 AC 21 ms
9,156 KB
testcase_06 AC 21 ms
9,192 KB
testcase_07 AC 21 ms
9,072 KB
testcase_08 AC 22 ms
9,076 KB
testcase_09 AC 22 ms
9,032 KB
testcase_10 AC 21 ms
9,056 KB
testcase_11 AC 21 ms
9,156 KB
testcase_12 AC 23 ms
9,132 KB
testcase_13 AC 22 ms
9,084 KB
testcase_14 AC 21 ms
9,004 KB
testcase_15 AC 21 ms
9,136 KB
testcase_16 AC 23 ms
9,084 KB
testcase_17 AC 23 ms
9,048 KB
testcase_18 AC 21 ms
9,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import re
def inpl(): return map(int, input().split())

N, M = inpl()
prog = re.compile("LOVE")
S = []

for _ in range(N):
    S.append(input())

for i in range(N):
    if "LOVE" in S[i]:
        print("YES")
        break
else:
    print("NO")
0