結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-27 23:43:27 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-27 13:09:39 |
| 合計ジャッジ時間 | 1,287 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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