結果

問題 No.2196 Pair Bonus
ユーザー HydruHydru
提出日時 2023-01-20 21:43:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 217 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 1,072 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 141,908 KB
最終ジャッジ日時 2023-09-05 13:58:22
合計ジャッジ時間 3,895 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,428 KB
testcase_01 AC 77 ms
71,344 KB
testcase_02 AC 75 ms
71,452 KB
testcase_03 AC 217 ms
137,720 KB
testcase_04 AC 213 ms
137,664 KB
testcase_05 AC 83 ms
76,144 KB
testcase_06 AC 82 ms
76,280 KB
testcase_07 AC 82 ms
76,096 KB
testcase_08 AC 105 ms
85,512 KB
testcase_09 AC 211 ms
141,908 KB
testcase_10 AC 165 ms
114,536 KB
testcase_11 AC 111 ms
88,200 KB
testcase_12 AC 184 ms
116,932 KB
testcase_13 AC 81 ms
75,868 KB
testcase_14 AC 96 ms
79,128 KB
testcase_15 AC 85 ms
76,036 KB
testcase_16 AC 203 ms
127,904 KB
testcase_17 AC 89 ms
76,704 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):
    Q=[
        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]
        ]
    ans+=max(Q)
    

print(ans)
0