結果

問題 No.2196 Pair Bonus
ユーザー katonyonkokatonyonko
提出日時 2023-01-20 21:40:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 225 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 86,896 KB
実行使用メモリ 141,132 KB
最終ジャッジ日時 2023-09-05 13:53:18
合計ジャッジ時間 3,948 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,172 KB
testcase_01 AC 73 ms
71,268 KB
testcase_02 AC 74 ms
71,380 KB
testcase_03 AC 225 ms
137,556 KB
testcase_04 AC 219 ms
137,664 KB
testcase_05 AC 76 ms
75,612 KB
testcase_06 AC 74 ms
75,732 KB
testcase_07 AC 76 ms
76,032 KB
testcase_08 AC 118 ms
85,300 KB
testcase_09 AC 215 ms
141,132 KB
testcase_10 AC 174 ms
114,392 KB
testcase_11 AC 127 ms
88,064 KB
testcase_12 AC 195 ms
117,056 KB
testcase_13 AC 78 ms
75,616 KB
testcase_14 AC 104 ms
79,324 KB
testcase_15 AC 77 ms
75,976 KB
testcase_16 AC 206 ms
127,796 KB
testcase_17 AC 86 ms
76,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def input():
  return sys.stdin.readline()[:-1]
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]+A[2*i+1]+X[i],A[2*i]+B[2*i+1]+Y[i],B[2*i]+A[2*i+1]+Y[i],B[2*i]+B[2*i+1]+X[i])
print(ans)
0