結果
問題 |
No.2196 Pair Bonus
|
ユーザー |
|
提出日時 | 2025-09-01 09:34:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 377 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 41,968 KB |
最終ジャッジ日時 | 2025-09-01 09:34:50 |
合計ジャッジ時間 | 5,131 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)