結果

問題 No.2196 Pair Bonus
コンテスト
ユーザー katonyonko
提出日時 2023-01-20 21:40:29
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 170 ms / 2,000 ms
+ 920µs
コード長 337 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 258 ms
コンパイル使用メモリ 95,856 KB
実行使用メモリ 150,904 KB
最終ジャッジ日時 2026-07-27 19:05:54
合計ジャッジ時間 4,369 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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