結果

問題 No.700 LOVE
ユーザー yuuki1036yuuki1036
提出日時 2018-11-08 10:40:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 9,272 KB
最終ジャッジ日時 2023-09-30 05:36:39
合計ジャッジ時間 1,659 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,112 KB
testcase_01 AC 26 ms
9,220 KB
testcase_02 AC 26 ms
9,108 KB
testcase_03 AC 25 ms
9,240 KB
testcase_04 AC 25 ms
9,092 KB
testcase_05 AC 26 ms
9,264 KB
testcase_06 AC 26 ms
9,220 KB
testcase_07 AC 26 ms
9,164 KB
testcase_08 AC 26 ms
9,248 KB
testcase_09 AC 26 ms
9,236 KB
testcase_10 AC 26 ms
9,264 KB
testcase_11 AC 26 ms
9,188 KB
testcase_12 AC 25 ms
9,076 KB
testcase_13 AC 26 ms
9,124 KB
testcase_14 AC 25 ms
9,156 KB
testcase_15 AC 26 ms
9,072 KB
testcase_16 AC 26 ms
9,080 KB
testcase_17 AC 26 ms
9,080 KB
testcase_18 AC 25 ms
9,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

H, W = map(int,input().split())
M = [input() for i in range(H)]
reg = re.compile(r'LOVE')

for i in range(H):
    if reg.search(M[i]):
        print('YES')
        break
else:
    print('NO')
0