結果

問題 No.322 Geometry Dash
ユーザー roiti46roiti46
提出日時 2015-12-15 00:57:21
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 6,524 KB
実行使用メモリ 30,808 KB
最終ジャッジ日時 2023-10-13 16:54:55
合計ジャッジ時間 13,041 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
7,776 KB
testcase_01 AC 20 ms
7,844 KB
testcase_02 AC 19 ms
7,936 KB
testcase_03 WA -
testcase_04 AC 176 ms
28,960 KB
testcase_05 AC 212 ms
28,796 KB
testcase_06 AC 227 ms
29,096 KB
testcase_07 AC 243 ms
29,524 KB
testcase_08 AC 278 ms
29,916 KB
testcase_09 AC 206 ms
28,780 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 228 ms
28,960 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 237 ms
29,424 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 249 ms
29,768 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(T)
TD = zip(T, D, range(N))
TD = sorted(sorted(TD, key = lambda x:x[1]), key = lambda x:(s - x[0])* (x[1] + 1))
print " ".join(map(str, [TD[i][2] + 1 for i in xrange(N)]))
0