给定两个长度为 nnn 的正整数序列 AAA 和 BBB,下标范围 1∼n1 \sim n1∼n,对所有的 i,j∈[1,n]i,j\in[1,n]i,j∈[1,n] ,求 max{AiBj+AjBi}\max\{ A_iB_j+A_jB_i\}max{AiBj+AjBi}