結果
問題 |
No.322 Geometry Dash
|
ユーザー |
|
提出日時 | 2015-12-15 00:57:21 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 31,224 KB |
最終ジャッジ日時 | 2024-09-15 12:51:34 |
合計ジャッジ時間 | 15,176 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 9 WA * 18 |
ソースコード
# -*- 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)]))