結果

問題 No.2196 Pair Bonus
ユーザー 310icecrystal310icecrystal
提出日時 2023-06-23 07:18:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 215 ms / 2,000 ms
コード長 439 bytes
コンパイル時間 641 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 144,324 KB
最終ジャッジ日時 2023-09-13 02:00:10
合計ジャッジ時間 5,573 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,320 KB
testcase_01 AC 73 ms
71,448 KB
testcase_02 AC 71 ms
71,244 KB
testcase_03 AC 215 ms
140,772 KB
testcase_04 AC 213 ms
140,904 KB
testcase_05 AC 77 ms
75,776 KB
testcase_06 AC 74 ms
75,912 KB
testcase_07 AC 75 ms
75,848 KB
testcase_08 AC 117 ms
86,020 KB
testcase_09 AC 211 ms
144,324 KB
testcase_10 AC 172 ms
116,284 KB
testcase_11 AC 120 ms
89,012 KB
testcase_12 AC 185 ms
118,680 KB
testcase_13 AC 72 ms
75,828 KB
testcase_14 AC 99 ms
79,624 KB
testcase_15 AC 75 ms
75,748 KB
testcase_16 AC 200 ms
129,648 KB
testcase_17 AC 80 ms
76,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = [-1] + list(map(int,input().split()))
B = [-1] + list(map(int,input().split()))
X = [-1] + list(map(int,input().split()))
Y = [-1] + list(map(int,input().split()))

ans = 0
for i in range(1,N+1):
    #print(A[2*i-1]+A[2*i]+X[i],A[2*i-1]+B[2*i]+Y[i],B[2*i-1]+A[2*i]+Y[i],B[2*i-1]+B[2*i]+X[i])
    ans += max(A[2*i-1]+A[2*i]+X[i],A[2*i-1]+B[2*i]+Y[i],B[2*i-1]+A[2*i]+Y[i],B[2*i-1]+B[2*i]+X[i])
    #print(ans)
print(ans)
0