結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2018-05-07 18:31:16 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 329 bytes |
コンパイル時間 | 308 ms |
コンパイル使用メモリ | 5,632 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 02:18:32 |
合計ジャッジ時間 | 751 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
print((function (f) local sa,pa=io.stdin:read("*l"):match("(.+)%s(.+)%s") local sb,pb=io.stdin:read("*l"):match("(.+)%s(.+)%s") if #pa>#pb then return sa end if #pa<#pb then return sb end for i=1,#pa do if f(pa,i,i)>f(pb,i,i) then return sa end if f(pa,i,i)<f(pb,i,i) then return sb end end return -1 end)(string.sub))