結果
問題 |
No.138 化石のバージョン
|
ユーザー |
👑 |
提出日時 | 2019-03-27 23:38:54 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 6,692 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 06:15:25 |
合計ジャッジ時間 | 1,014 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 8 |
ソースコード
s0, s1 = io.read("*l", "*l") v0, v1 = {}, {} for j in string.gmatch(s0, "(%d)") do table.insert(v0, j) end for j in string.gmatch(s1, "(%d)") do table.insert(v1, 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