結果
| 問題 | 
                            No.138 化石のバージョン
                             | 
                    
| コンテスト | |
| ユーザー | 
                            👑  | 
                    
| 提出日時 | 2019-03-27 23:43:27 | 
| 言語 | Lua  (LuaJit 2.1.1734355927)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 407 bytes | 
| コンパイル時間 | 329 ms | 
| コンパイル使用メモリ | 7,080 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-11 06:16:05 | 
| 合計ジャッジ時間 | 1,205 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 33 | 
ソースコード
s0, s1 = io.read("*l", "*l")
v0, v1 = {}, {}
for j in string.gmatch(s0, "(%d+)") do table.insert(v0, tonumber(j)) end
for j in string.gmatch(s1, "(%d+)") do table.insert(v1, tonumber(j)) end
if(v1[1] < v0[1]) then print("YES")
elseif(v0[1] < v1[1]) then print("NO")
elseif(v1[2] < v0[2]) then print("YES")
elseif(v0[2] < v1[2]) then print("NO")
elseif(v1[3] <= v0[3]) then print("YES")
else print("NO") end