結果

問題 No.322 Geometry Dash
ユーザー roiti46roiti46
提出日時 2015-12-15 00:40:23
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 30,824 KB
最終ジャッジ日時 2023-10-13 16:53:33
合計ジャッジ時間 13,660 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
7,780 KB
testcase_01 AC 19 ms
7,924 KB
testcase_02 AC 20 ms
7,936 KB
testcase_03 WA -
testcase_04 AC 174 ms
29,108 KB
testcase_05 AC 208 ms
28,736 KB
testcase_06 AC 233 ms
29,028 KB
testcase_07 AC 241 ms
29,248 KB
testcase_08 AC 246 ms
30,048 KB
testcase_09 AC 202 ms
28,796 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 230 ms
28,852 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 236 ms
29,348 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 254 ms
29,872 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
T = map(int, raw_input().split())
D = map(int, raw_input().split())

s = sum(D)
TD = zip(T, D, range(N))
TD = sorted(sorted(TD, key = lambda x:x[1]), key = lambda x:x[0]*(s - x[1]), reverse = True)

print " ".join(map(str, [TD[i][2] + 1 for i in xrange(N)]))
0