結果

問題 No.2856 Junk Market Game
ユーザー prin_kemkemprin_kemkem
提出日時 2024-08-25 15:22:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 798 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 82,784 KB
実行使用メモリ 81,456 KB
最終ジャッジ日時 2024-08-25 15:22:42
合計ジャッジ時間 6,746 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
80,556 KB
testcase_01 AC 95 ms
80,636 KB
testcase_02 AC 84 ms
80,692 KB
testcase_03 AC 92 ms
80,588 KB
testcase_04 AC 87 ms
80,764 KB
testcase_05 AC 95 ms
80,644 KB
testcase_06 AC 113 ms
80,596 KB
testcase_07 AC 85 ms
80,668 KB
testcase_08 AC 88 ms
80,632 KB
testcase_09 AC 86 ms
80,712 KB
testcase_10 AC 91 ms
81,064 KB
testcase_11 AC 87 ms
81,056 KB
testcase_12 AC 88 ms
81,040 KB
testcase_13 AC 82 ms
81,036 KB
testcase_14 AC 86 ms
80,960 KB
testcase_15 AC 85 ms
81,040 KB
testcase_16 AC 88 ms
81,284 KB
testcase_17 AC 88 ms
80,908 KB
testcase_18 AC 101 ms
80,844 KB
testcase_19 AC 86 ms
81,424 KB
testcase_20 AC 85 ms
80,896 KB
testcase_21 AC 93 ms
81,380 KB
testcase_22 AC 90 ms
81,024 KB
testcase_23 AC 86 ms
81,216 KB
testcase_24 AC 85 ms
80,984 KB
testcase_25 AC 84 ms
81,124 KB
testcase_26 AC 83 ms
80,536 KB
testcase_27 AC 91 ms
81,092 KB
testcase_28 AC 87 ms
80,904 KB
testcase_29 AC 88 ms
81,272 KB
testcase_30 AC 100 ms
81,052 KB
testcase_31 AC 89 ms
81,260 KB
testcase_32 AC 89 ms
81,216 KB
testcase_33 AC 88 ms
81,208 KB
testcase_34 AC 86 ms
81,456 KB
testcase_35 AC 89 ms
80,992 KB
testcase_36 AC 89 ms
81,264 KB
testcase_37 AC 90 ms
81,064 KB
testcase_38 AC 88 ms
81,056 KB
testcase_39 AC 85 ms
81,136 KB
testcase_40 AC 89 ms
80,848 KB
testcase_41 AC 93 ms
81,264 KB
testcase_42 AC 100 ms
81,360 KB
testcase_43 AC 91 ms
81,160 KB
testcase_44 AC 86 ms
81,216 KB
testcase_45 AC 92 ms
81,040 KB
testcase_46 AC 89 ms
80,972 KB
testcase_47 AC 90 ms
80,972 KB
testcase_48 AC 114 ms
81,380 KB
testcase_49 AC 90 ms
81,432 KB
testcase_50 AC 87 ms
81,032 KB
testcase_51 AC 89 ms
81,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, deque, Counter
# from functools import cache
# import copy
from itertools import combinations, permutations, product, accumulate, groupby, chain
# from more_itertools import distinct_permutations
from heapq import heapify, heappop, heappush
import math
import bisect
from pprint import pprint
from random import randint, shuffle, randrange
import sys
# sys.setrecursionlimit(200000)
input = lambda: sys.stdin.readline().rstrip('\n')
inf = float('inf')
mod1 = 10**9+7
mod2 = 998244353
def ceil_div(x, y): return -(-x//y)

#################################################   

N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
S = [a+b for a, b in zip(A, B)]
S.sort()
s = 0
for i in range(N):
    s += S[2*i]
print(s-sum(B))
0