結果
| 問題 | No.322 Geometry Dash |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-15 00:40:23 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 77,760 KB |
| 最終ジャッジ日時 | 2025-12-03 18:35:52 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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(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)]))