結果

問題 No.1359 [Zelkova 3rd Tune] 四人セゾン
コンテスト
ユーザー 👑 Kazun
提出日時 2020-10-25 02:42:44
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 374 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,050 ms
コンパイル使用メモリ 80,512 KB
実行使用メモリ 74,752 KB
最終ジャッジ日時 2026-10-07 20:22:28
合計ジャッジ時間 23,197 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 75
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input=sys.stdin.readline

N=int(input())
P=sorted(list(map(int,input().split())))
E=sorted(list(map(int,input().split())))
A=sorted(list(map(int,input().split())))
H=sorted(list(map(int,input().split())))

Max=[max(P[i],E[i],A[i],H[i]) for i in range(N)]
Min=[min(P[i],E[i],A[i],H[i]) for i in range(N)]

print(sum(Max)-sum(Min))
for X in [P,E,A,H]:
    print(*X)
0