結果
| 問題 | No.1279 Array Battle |
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2020-11-06 22:17:54 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 85,244 KB |
| 実行使用メモリ | 53,544 KB |
| 最終ジャッジ日時 | 2026-04-03 09:10:24 |
| 合計ジャッジ時間 | 2,960 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
N, = map(int, input().split())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
X.sort()
Y.sort()
X=X[::-1]
R = 0
for i in range(N):
x,y=X[i],Y[i]
if x>y:
R+=x-y
print(R)
nehan_der_thal