結果

問題 No.2196 Pair Bonus
ユーザー shobonvipshobonvip
提出日時 2023-01-20 21:48:42
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 141,804 KB
最終ジャッジ日時 2023-09-05 14:03:31
合計ジャッジ時間 3,942 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,364 KB
testcase_01 AC 74 ms
71,460 KB
testcase_02 AC 74 ms
71,124 KB
testcase_03 AC 213 ms
137,572 KB
testcase_04 AC 208 ms
137,540 KB
testcase_05 AC 83 ms
75,964 KB
testcase_06 AC 79 ms
75,876 KB
testcase_07 AC 78 ms
76,056 KB
testcase_08 AC 101 ms
85,460 KB
testcase_09 AC 206 ms
141,804 KB
testcase_10 AC 160 ms
114,384 KB
testcase_11 AC 109 ms
88,176 KB
testcase_12 AC 177 ms
116,752 KB
testcase_13 AC 80 ms
75,876 KB
testcase_14 AC 92 ms
79,120 KB
testcase_15 AC 81 ms
76,108 KB
testcase_16 AC 195 ms
127,872 KB
testcase_17 AC 85 ms
76,548 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([x[i] + a[2*i] + a[2*i + 1], x[i] + b[2*i] + b[2*i + 1], y[i] + a[2*i] + b[2*i+1], y[i] + a[2*i+1] + b[2*i]])

print(ans)
0