結果
| 問題 | No.700 LOVE | 
| コンテスト | |
| ユーザー |  nobigomu | 
| 提出日時 | 2018-07-02 12:35:20 | 
| 言語 | Lua (LuaJit 2.1.1734355927) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 389 bytes | 
| コンパイル時間 | 139 ms | 
| コンパイル使用メモリ | 6,812 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-22 23:24:05 | 
| 合計ジャッジ時間 | 804 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 16 | 
ソースコード
print((function (n, m)
	for _=1,n do
		local s,t=io.stdin:read("*l"),0
		for i=1,#s do
			if t==3 then if s:sub(i,i)=="E" then return "YES" else t=0 end end
			if t==2 then if s:sub(i,i)=="V" then t=t+1 else t=0 end end
			if t==1 then if s:sub(i,i)=="O" then t=t+1 else t=0 end end
			if s:sub(i,i)=="L" then t=1 end
		end
	end
	return "NO"
end)(io.stdin:read("*n"), io.stdin:read("*l")))
            
            
            
        