結果

問題 No.2196 Pair Bonus
ユーザー 👑 H20H20
提出日時 2023-01-20 21:47:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 226 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 141,872 KB
最終ジャッジ日時 2023-09-05 14:02:46
合計ジャッジ時間 3,980 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,476 KB
testcase_01 AC 75 ms
71,268 KB
testcase_02 AC 77 ms
71,580 KB
testcase_03 AC 223 ms
137,672 KB
testcase_04 AC 226 ms
137,488 KB
testcase_05 AC 82 ms
75,784 KB
testcase_06 AC 82 ms
75,812 KB
testcase_07 AC 81 ms
75,792 KB
testcase_08 AC 122 ms
85,364 KB
testcase_09 AC 222 ms
141,872 KB
testcase_10 AC 179 ms
114,576 KB
testcase_11 AC 130 ms
88,328 KB
testcase_12 AC 194 ms
116,852 KB
testcase_13 AC 81 ms
76,120 KB
testcase_14 AC 111 ms
79,372 KB
testcase_15 AC 82 ms
75,704 KB
testcase_16 AC 207 ms
127,896 KB
testcase_17 AC 90 ms
76,576 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):
    ans += max(A[i*2]+B[i*2+1]+Y[i],
    B[i*2]+A[i*2+1]+Y[i],
    A[i*2]+A[i*2+1]+X[i],
    B[i*2]+B[i*2+1]+X[i])
print(ans)
0