結果

問題 No.322 Geometry Dash
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-12-15 00:28:30
言語 Python2
(2.7.18)
結果
AC  
実行時間 350 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 564 ms
コンパイル使用メモリ 6,728 KB
実行使用メモリ 33,848 KB
最終ジャッジ日時 2023-08-08 10:58:08
合計ジャッジ時間 12,884 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,456 KB
testcase_01 AC 13 ms
6,580 KB
testcase_02 AC 14 ms
6,476 KB
testcase_03 AC 14 ms
6,524 KB
testcase_04 AC 241 ms
33,756 KB
testcase_05 AC 278 ms
33,548 KB
testcase_06 AC 303 ms
33,564 KB
testcase_07 AC 319 ms
33,716 KB
testcase_08 AC 318 ms
33,732 KB
testcase_09 AC 270 ms
33,532 KB
testcase_10 AC 304 ms
33,592 KB
testcase_11 AC 311 ms
33,716 KB
testcase_12 AC 319 ms
33,736 KB
testcase_13 AC 323 ms
33,764 KB
testcase_14 AC 301 ms
33,588 KB
testcase_15 AC 316 ms
33,604 KB
testcase_16 AC 333 ms
33,680 KB
testcase_17 AC 331 ms
33,672 KB
testcase_18 AC 328 ms
33,636 KB
testcase_19 AC 309 ms
33,716 KB
testcase_20 AC 323 ms
33,804 KB
testcase_21 AC 333 ms
33,784 KB
testcase_22 AC 332 ms
33,772 KB
testcase_23 AC 335 ms
33,648 KB
testcase_24 AC 320 ms
33,712 KB
testcase_25 AC 325 ms
33,596 KB
testcase_26 AC 350 ms
33,848 KB
testcase_27 AC 340 ms
33,708 KB
testcase_28 AC 344 ms
33,504 KB
testcase_29 AC 251 ms
28,052 KB
testcase_30 AC 291 ms
30,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
from collections import namedtuple
n = int(raw_input())
t = map(float, raw_input().split())
d = map(float, raw_input().split())

T = namedtuple('T', 'iD, time, difficulty')
arr = [T(i+1, t[i], d[i]) for i in xrange(n)]
arr.sort(key=lambda x: x.time/x.difficulty, reverse=1)
print ' '.join(map(str, (x.iD for x in arr)))
0