結果
| 問題 | No.2196 Pair Bonus |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-01 09:34:45 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 297 ms / 2,000 ms |
| + 243µs | |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 21,668 KB |
| 実行使用メモリ | 46,924 KB |
| 最終ジャッジ日時 | 2026-07-14 13:17:56 |
| 合計ジャッジ時間 | 5,501 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
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(max(a[i*2] + a[i*2+1], b[i*2] + b[i*2+1]) + x[i], max(a[i*2] + b[i*2+1], b[i*2] + a[i*2+1]) + y[i])
print(ans)