結果
| 問題 | No.322 Geometry Dash |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-15 00:57:21 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 77,984 KB |
| 最終ジャッジ日時 | 2025-12-03 18:36:08 |
|
ジャッジサーバー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(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)]))