結果

問題 No.2196 Pair Bonus
ユーザー lloyzlloyz
提出日時 2023-01-20 21:36:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 225 ms / 2,000 ms
コード長 388 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 87,312 KB
実行使用メモリ 141,740 KB
最終ジャッジ日時 2023-09-05 13:47:23
合計ジャッジ時間 4,134 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,408 KB
testcase_01 AC 72 ms
71,288 KB
testcase_02 AC 73 ms
71,640 KB
testcase_03 AC 225 ms
137,604 KB
testcase_04 AC 223 ms
137,532 KB
testcase_05 AC 79 ms
75,692 KB
testcase_06 AC 77 ms
76,020 KB
testcase_07 AC 78 ms
75,772 KB
testcase_08 AC 119 ms
85,496 KB
testcase_09 AC 222 ms
141,740 KB
testcase_10 AC 176 ms
114,464 KB
testcase_11 AC 125 ms
88,304 KB
testcase_12 AC 195 ms
117,076 KB
testcase_13 AC 79 ms
75,700 KB
testcase_14 AC 104 ms
79,148 KB
testcase_15 AC 78 ms
75,732 KB
testcase_16 AC 209 ms
127,876 KB
testcase_17 AC 82 ms
76,616 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):
    ans += max(A[2 * i] + A[2 * i + 1] + X[i],
               B[2 * i] + B[2 * i + 1] + X[i],
               A[2 * i] + B[2 * i + 1] + Y[i],
               B[2 * i] + A[2 * i + 1] + Y[i])
print(ans)
0