結果

問題 No.322 Geometry Dash
ユーザー roiti46
提出日時 2015-12-15 00:40:23
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 31,180 KB
最終ジャッジ日時 2024-09-15 12:50:18
合計ジャッジ時間 15,621 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 9 WA * 18
権限があれば一括ダウンロードができます

ソースコード

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