結果

問題 No.2856 Junk Market Game
ユーザー tassei903tassei903
提出日時 2024-08-25 14:30:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 467 bytes
コンパイル時間 459 ms
コンパイル使用メモリ 82,920 KB
実行使用メモリ 60,980 KB
最終ジャッジ日時 2024-08-25 14:30:21
合計ジャッジ時間 4,179 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,004 KB
testcase_01 AC 37 ms
52,336 KB
testcase_02 AC 40 ms
52,704 KB
testcase_03 AC 37 ms
52,152 KB
testcase_04 AC 37 ms
52,272 KB
testcase_05 AC 38 ms
53,384 KB
testcase_06 AC 36 ms
52,264 KB
testcase_07 AC 37 ms
53,000 KB
testcase_08 AC 39 ms
52,264 KB
testcase_09 AC 37 ms
52,884 KB
testcase_10 AC 41 ms
60,060 KB
testcase_11 AC 44 ms
60,828 KB
testcase_12 AC 48 ms
59,536 KB
testcase_13 AC 41 ms
59,444 KB
testcase_14 AC 43 ms
59,748 KB
testcase_15 AC 41 ms
59,172 KB
testcase_16 AC 42 ms
60,704 KB
testcase_17 AC 41 ms
59,624 KB
testcase_18 AC 42 ms
59,352 KB
testcase_19 AC 41 ms
59,656 KB
testcase_20 AC 41 ms
60,180 KB
testcase_21 AC 43 ms
59,796 KB
testcase_22 AC 42 ms
60,280 KB
testcase_23 AC 42 ms
59,564 KB
testcase_24 AC 42 ms
60,036 KB
testcase_25 AC 40 ms
59,304 KB
testcase_26 AC 36 ms
53,276 KB
testcase_27 AC 43 ms
60,608 KB
testcase_28 AC 42 ms
60,476 KB
testcase_29 AC 42 ms
60,692 KB
testcase_30 AC 42 ms
60,076 KB
testcase_31 AC 42 ms
60,152 KB
testcase_32 AC 42 ms
60,160 KB
testcase_33 AC 42 ms
60,944 KB
testcase_34 AC 49 ms
59,932 KB
testcase_35 AC 42 ms
59,860 KB
testcase_36 AC 43 ms
60,548 KB
testcase_37 AC 42 ms
59,960 KB
testcase_38 AC 43 ms
60,376 KB
testcase_39 AC 43 ms
60,132 KB
testcase_40 AC 42 ms
60,052 KB
testcase_41 AC 42 ms
60,160 KB
testcase_42 AC 42 ms
59,592 KB
testcase_43 AC 42 ms
59,880 KB
testcase_44 AC 42 ms
59,864 KB
testcase_45 AC 43 ms
59,920 KB
testcase_46 AC 41 ms
59,748 KB
testcase_47 AC 43 ms
60,512 KB
testcase_48 AC 43 ms
60,404 KB
testcase_49 AC 41 ms
60,980 KB
testcase_50 AC 41 ms
60,728 KB
testcase_51 AC 42 ms
60,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

n = ni()
a = na()
b = na()
c = sorted([a[i] + b[i] for i in range(n * 2)])
#print(c)
print(-sum(b) + sum(c[::2]))
0