結果

問題 No.322 Geometry Dash
ユーザー titiatitia
提出日時 2023-07-27 06:40:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 314 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 30,544 KB
最終ジャッジ日時 2024-04-14 19:49:13
合計ジャッジ時間 12,340 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 218 ms
26,772 KB
testcase_05 AC 250 ms
26,764 KB
testcase_06 AC 264 ms
26,904 KB
testcase_07 AC 277 ms
28,440 KB
testcase_08 AC 291 ms
29,224 KB
testcase_09 AC 243 ms
26,768 KB
testcase_10 AC 259 ms
27,668 KB
testcase_11 AC 275 ms
27,832 KB
testcase_12 AC 284 ms
28,468 KB
testcase_13 AC 292 ms
28,400 KB
testcase_14 AC 266 ms
27,424 KB
testcase_15 AC 275 ms
27,484 KB
testcase_16 AC 289 ms
27,640 KB
testcase_17 AC 294 ms
27,844 KB
testcase_18 AC 297 ms
29,268 KB
testcase_19 AC 273 ms
28,108 KB
testcase_20 AC 285 ms
28,248 KB
testcase_21 AC 291 ms
28,536 KB
testcase_22 AC 295 ms
28,336 KB
testcase_23 AC 308 ms
28,912 KB
testcase_24 AC 292 ms
29,008 KB
testcase_25 AC 290 ms
28,812 KB
testcase_26 AC 300 ms
29,096 KB
testcase_27 AC 307 ms
29,964 KB
testcase_28 AC 314 ms
30,448 KB
testcase_29 AC 256 ms
29,164 KB
testcase_30 AC 273 ms
30,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from operator import itemgetter
N=int(input())
T=list(map(int,input().split()))
D=list(map(int,input().split()))

X=[]
for i in range(N):
    X.append((i+1,T[i],D[i]))

X.sort(key=lambda x:x[2]/x[1])

for x,_,_ in X:
    print(x,end=" ")
0