結果
問題 | No.322 Geometry Dash |
ユーザー | はむ吉🐹 |
提出日時 | 2016-07-14 18:19:30 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 958 ms / 2,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 344 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 41,608 KB |
最終ジャッジ日時 | 2024-04-26 06:15:12 |
合計ジャッジ時間 | 23,164 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
10,752 KB |
testcase_01 | AC | 29 ms
10,880 KB |
testcase_02 | AC | 30 ms
10,880 KB |
testcase_03 | AC | 29 ms
10,752 KB |
testcase_04 | AC | 256 ms
29,920 KB |
testcase_05 | AC | 433 ms
30,244 KB |
testcase_06 | AC | 531 ms
32,740 KB |
testcase_07 | AC | 647 ms
34,192 KB |
testcase_08 | AC | 729 ms
35,172 KB |
testcase_09 | AC | 430 ms
30,252 KB |
testcase_10 | AC | 534 ms
30,820 KB |
testcase_11 | AC | 619 ms
33,120 KB |
testcase_12 | AC | 745 ms
34,248 KB |
testcase_13 | AC | 792 ms
35,456 KB |
testcase_14 | AC | 539 ms
32,900 KB |
testcase_15 | AC | 622 ms
33,124 KB |
testcase_16 | AC | 721 ms
35,168 KB |
testcase_17 | AC | 812 ms
36,784 KB |
testcase_18 | AC | 850 ms
38,168 KB |
testcase_19 | AC | 639 ms
34,284 KB |
testcase_20 | AC | 792 ms
34,528 KB |
testcase_21 | AC | 818 ms
36,744 KB |
testcase_22 | AC | 866 ms
38,116 KB |
testcase_23 | AC | 908 ms
39,304 KB |
testcase_24 | AC | 728 ms
35,516 KB |
testcase_25 | AC | 790 ms
35,476 KB |
testcase_26 | AC | 854 ms
37,948 KB |
testcase_27 | AC | 899 ms
39,328 KB |
testcase_28 | AC | 958 ms
40,384 KB |
testcase_29 | AC | 742 ms
39,188 KB |
testcase_30 | AC | 844 ms
41,608 KB |
ソースコード
#!/usr/bin/env python3 import collections import functools Spot = collections.namedtuple("Spot", "i t d") def spot_cmp(spot1, spot2): return spot2.t * spot1.d - spot1.t * spot2.d def main(): n = int(input()) ts = map(int, input().split()) ds = map(int, input().split()) spots = [Spot(*args) for args in zip(range(1, n + 1), ts, ds)] spots.sort(key=functools.cmp_to_key(spot_cmp)) print(*(spot.i for spot in spots)) if __name__ == '__main__': main()