結果
| 問題 | No.700 LOVE | 
| コンテスト | |
| ユーザー |  mossari_aozora | 
| 提出日時 | 2019-10-02 11:32:32 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 31 ms / 2,000 ms | 
| コード長 | 405 bytes | 
| コンパイル時間 | 141 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-22 23:40:37 | 
| 合計ジャッジ時間 | 1,448 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 16 | 
ソースコード
def solve():
    line = input().split(' ')
    row = int(line[0])
    col = int(line[1])
    for i in range(row):
        s = input()
        for j in range(col):
            if (j + 3 >= col):
                break
            if (s[j] == 'L' and s[j + 1] == 'O' and s[j + 2] == 'V'
                    and s[j + 3] == 'E'):
                print("YES")
                return
    print("NO")
solve()
            
            
            
        