結果
問題 |
No.700 LOVE
|
ユーザー |
![]() |
提出日時 | 2019-05-14 11:14:32 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 471 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-07-22 23:37:35 |
合計ジャッジ時間 | 1,192 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
n, m = map(int, raw_input().split()) lst = [] for i in range(0, n): lst.append(raw_input()) flag = False for i in range(0, n): for j in range(0, m-3): if lst[i][j]=='L' and lst[i][j+1]=='O' and lst[i][j+2]=='V' and lst[i][j+3]=='E': flag = True break if flag: break if flag: print 'YES' else: print 'NO'