結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2018-03-29 01:23:23 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-25 13:57:23 |
合計ジャッジ時間 | 662 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
(function (f, a, b, c)for _,v in ipairs(f(a, b, c)) do print(v[1]) endend)(function (a, b, c)local t = {}table.insert(t, {"A"; a})table.insert(t, {"B"; b})table.insert(t, {"C"; c})table.sort(t, function (l, r) return l[2] > r[2] end)return tend, io.stdin:read("*n"), io.stdin:read("*n"), io.stdin:read("*n"))