結果

問題 No.322 Geometry Dash
ユーザー 👑 obakyanobakyan
提出日時 2021-07-27 23:39:09
言語 Lua
(LuaJit 2.1.1696795921)
結果
AC  
実行時間 243 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 10,512 KB
最終ジャッジ日時 2023-10-01 04:14:14
合計ジャッジ時間 10,346 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 206 ms
9,856 KB
testcase_05 AC 225 ms
10,244 KB
testcase_06 AC 226 ms
10,184 KB
testcase_07 AC 229 ms
10,236 KB
testcase_08 AC 231 ms
9,880 KB
testcase_09 AC 216 ms
9,800 KB
testcase_10 AC 223 ms
10,212 KB
testcase_11 AC 229 ms
10,504 KB
testcase_12 AC 232 ms
10,056 KB
testcase_13 AC 238 ms
10,236 KB
testcase_14 AC 222 ms
9,944 KB
testcase_15 AC 231 ms
10,192 KB
testcase_16 AC 236 ms
10,348 KB
testcase_17 AC 233 ms
9,920 KB
testcase_18 AC 243 ms
10,048 KB
testcase_19 AC 235 ms
10,512 KB
testcase_20 AC 237 ms
10,244 KB
testcase_21 AC 232 ms
10,108 KB
testcase_22 AC 241 ms
10,256 KB
testcase_23 AC 240 ms
10,216 KB
testcase_24 AC 237 ms
10,424 KB
testcase_25 AC 240 ms
10,268 KB
testcase_26 AC 241 ms
10,284 KB
testcase_27 AC 239 ms
10,052 KB
testcase_28 AC 240 ms
10,264 KB
testcase_29 AC 190 ms
9,504 KB
testcase_30 AC 209 ms
9,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

local n = io.read("*n")
local a, b = {}, {}
local idx = {}
for i = 1, n do
  a[i] = io.read("*n")
  idx[i] = i
end
for i = 1, n do
  b[i] = io.read("*n")
end
table.sort(idx, function(x, y) return a[x] * b[y] > a[y] * b[x] end)
print(table.concat(idx, " "))
0