結果

問題 No.2196 Pair Bonus
ユーザー MasKoaTSMasKoaTS
提出日時 2023-01-20 21:47:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 232 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 141,744 KB
最終ジャッジ日時 2023-09-05 14:01:41
合計ジャッジ時間 4,103 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,652 KB
testcase_01 AC 75 ms
71,700 KB
testcase_02 AC 77 ms
71,216 KB
testcase_03 AC 224 ms
137,656 KB
testcase_04 AC 223 ms
137,568 KB
testcase_05 AC 81 ms
75,720 KB
testcase_06 AC 83 ms
75,688 KB
testcase_07 AC 84 ms
75,628 KB
testcase_08 AC 126 ms
85,512 KB
testcase_09 AC 232 ms
141,744 KB
testcase_10 AC 182 ms
114,384 KB
testcase_11 AC 130 ms
88,412 KB
testcase_12 AC 193 ms
116,948 KB
testcase_13 AC 80 ms
75,732 KB
testcase_14 AC 108 ms
79,360 KB
testcase_15 AC 80 ms
75,808 KB
testcase_16 AC 211 ms
127,808 KB
testcase_17 AC 87 ms
76,336 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