結果

問題 No.2196 Pair Bonus
ユーザー qibqib
提出日時 2023-01-21 03:47:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 908 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 141,932 KB
最終ジャッジ日時 2023-09-05 19:37:10
合計ジャッジ時間 4,260 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,364 KB
testcase_01 AC 73 ms
71,384 KB
testcase_02 AC 75 ms
71,360 KB
testcase_03 AC 226 ms
137,516 KB
testcase_04 AC 222 ms
137,512 KB
testcase_05 AC 77 ms
75,732 KB
testcase_06 AC 76 ms
75,744 KB
testcase_07 AC 77 ms
75,644 KB
testcase_08 AC 125 ms
85,308 KB
testcase_09 AC 221 ms
141,932 KB
testcase_10 AC 176 ms
114,452 KB
testcase_11 AC 127 ms
88,052 KB
testcase_12 AC 191 ms
116,860 KB
testcase_13 AC 76 ms
75,688 KB
testcase_14 AC 116 ms
79,424 KB
testcase_15 AC 78 ms
75,792 KB
testcase_16 AC 210 ms
127,912 KB
testcase_17 AC 82 ms
76,304 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(max(a[2 * i] + a[2 * i + 1], b[2 * i] + b[2 * i + 1]) + x[i], max(a[2 * i] + b[2 * i + 1], b[2 * i] + a[2 * i + 1]) + y[i])

print(ans)
0