結果

問題 No.2196 Pair Bonus
ユーザー SidewaysOwlSidewaysOwl
提出日時 2023-01-20 23:52:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 86,560 KB
実行使用メモリ 141,224 KB
最終ジャッジ日時 2023-09-05 16:19:15
合計ジャッジ時間 3,886 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,840 KB
testcase_01 AC 68 ms
71,140 KB
testcase_02 AC 67 ms
71,032 KB
testcase_03 AC 208 ms
137,064 KB
testcase_04 AC 209 ms
137,328 KB
testcase_05 AC 72 ms
75,244 KB
testcase_06 AC 70 ms
75,300 KB
testcase_07 AC 69 ms
75,336 KB
testcase_08 AC 108 ms
84,824 KB
testcase_09 AC 206 ms
141,224 KB
testcase_10 AC 160 ms
114,016 KB
testcase_11 AC 116 ms
87,892 KB
testcase_12 AC 178 ms
116,316 KB
testcase_13 AC 71 ms
75,196 KB
testcase_14 AC 97 ms
79,100 KB
testcase_15 AC 72 ms
75,528 KB
testcase_16 AC 194 ms
127,368 KB
testcase_17 AC 78 ms
76,028 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] + b[2*i+1] + y[i],b[2*i] + a[2*i+1] + y[i],a[2*i] + a[2*i+1] + x[i],b[2*i] + b[2*i+1] + x[i])
print(ans)
0