結果

問題 No.322 Geometry Dash
ユーザー TawaraTawara
提出日時 2015-12-16 22:39:25
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,144 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 6,520 KB
実行使用メモリ 18,756 KB
最終ジャッジ日時 2023-10-14 11:08:11
合計ジャッジ時間 29,646 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,052 KB
testcase_01 AC 11 ms
6,092 KB
testcase_02 AC 10 ms
5,984 KB
testcase_03 AC 10 ms
6,088 KB
testcase_04 AC 181 ms
16,312 KB
testcase_05 AC 541 ms
16,260 KB
testcase_06 AC 715 ms
16,288 KB
testcase_07 AC 862 ms
16,512 KB
testcase_08 AC 949 ms
17,000 KB
testcase_09 AC 530 ms
16,344 KB
testcase_10 AC 693 ms
16,208 KB
testcase_11 AC 871 ms
16,312 KB
testcase_12 AC 987 ms
16,480 KB
testcase_13 AC 1,052 ms
16,956 KB
testcase_14 AC 714 ms
16,292 KB
testcase_15 AC 866 ms
16,208 KB
testcase_16 AC 1,009 ms
16,248 KB
testcase_17 AC 1,084 ms
16,460 KB
testcase_18 AC 1,118 ms
16,964 KB
testcase_19 AC 850 ms
16,724 KB
testcase_20 AC 982 ms
16,672 KB
testcase_21 AC 1,065 ms
16,716 KB
testcase_22 AC 1,121 ms
16,928 KB
testcase_23 AC 1,139 ms
17,408 KB
testcase_24 AC 947 ms
17,288 KB
testcase_25 AC 1,024 ms
17,208 KB
testcase_26 AC 1,085 ms
17,192 KB
testcase_27 AC 1,134 ms
17,408 KB
testcase_28 AC 1,144 ms
17,896 KB
testcase_29 AC 922 ms
17,676 KB
testcase_30 AC 999 ms
18,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
T = map(int,raw_input().split())
D = map(int,raw_input().split())
c = lambda a,b:T[a]*(D[a]+D[b]*2+2)+T[b]*(D[b]+2)
f = lambda l,r:c(r,l)-c(l,r)
print " ".join(map(lambda x:str(x+1),sorted(xrange(N),cmp=f)))
0