結果

問題 No.700 LOVE
ユーザー McGregorsh
提出日時 2023-04-04 22:29:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 58,112 KB
最終ジャッジ日時 2024-10-01 12:33:01
合計ジャッジ時間 2,065 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

H, W = map(int, input().split())

for i in range(H):
    s = input()
    for j in range(W-3):
        if s[j:j+4] == 'LOVE':
            print('YES')
            exit()
print('NO')
0