結果

問題 No.2196 Pair Bonus
ユーザー _lS_RRoRbT
提出日時 2023-01-20 22:45:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 200 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 139,544 KB
最終ジャッジ日時 2024-06-23 10:42:16
合計ジャッジ時間 3,373 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
X = list(map(int, input().split()))
Y = list(map(int, input().split()))

ans = 0

for i in range(N):
    a1 = A[2 * i]
    a2 = A[2 * i + 1]
    b1 = B[2 * i]
    b2 = B[2 * i + 1]
    x = X[i]
    y = Y[i]
    ans += max(a1 + a2 + x, a1 + b2 + y, b1 + a2 + y, b1 + b2 + x)

print(ans)
0