結果

問題 No.138 化石のバージョン
ユーザー 👑 obakyan
提出日時 2019-03-27 23:40:47
言語 Lua
(LuaJit 2.1.1734355927)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-11 06:15:45
合計ジャッジ時間 1,132 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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
0