結果

問題 No.2196 Pair Bonus
ユーザー _lS_RRoRbT_lS_RRoRbT
提出日時 2023-01-20 22:45:05
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 1,949 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 141,488 KB
最終ジャッジ日時 2023-09-05 15:06:40
合計ジャッジ時間 3,844 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,320 KB
testcase_01 AC 71 ms
71,420 KB
testcase_02 AC 72 ms
71,388 KB
testcase_03 AC 209 ms
137,512 KB
testcase_04 AC 208 ms
137,488 KB
testcase_05 AC 75 ms
75,648 KB
testcase_06 AC 74 ms
75,588 KB
testcase_07 AC 74 ms
75,644 KB
testcase_08 AC 111 ms
85,404 KB
testcase_09 AC 208 ms
141,488 KB
testcase_10 AC 165 ms
114,388 KB
testcase_11 AC 113 ms
88,032 KB
testcase_12 AC 178 ms
116,812 KB
testcase_13 AC 77 ms
75,640 KB
testcase_14 AC 105 ms
78,956 KB
testcase_15 AC 78 ms
75,576 KB
testcase_16 AC 196 ms
127,712 KB
testcase_17 AC 79 ms
76,468 KB
権限があれば一括ダウンロードができます

ソースコード

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