結果

問題 No.2196 Pair Bonus
コンテスト
ユーザー 310icecrystal
提出日時 2023-06-23 07:18:35
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 439 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,651 ms
コンパイル使用メモリ 85,248 KB
実行使用メモリ 145,380 KB
最終ジャッジ日時 2026-03-20 12:19:33
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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