3 5 4
9 The sequences satisfying the condition are $(1,1,1),(1,1,2),(1,2,1),(2,1,1),(1,1,3),(1,2,2),(2,1,2),(1,3,1),(3,1,1)$, which is nine sequences.
4 5 7
66
123 456 789
436486661
1000000000 10000 10000
855626126
{
"problem": {
"name": "Max Prod Plus",
"description": {
"content": "For a length-$N$ sequence of positive integers $A=(A_1,A_2,\\dots,A_N)$, define $f(A)$ as follows: * The maximum value of $A_iA_j + A_k$ over all triples of integers $(i,j,k)$ satisfying $1 \\le i < ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc075_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "For a length-$N$ sequence of positive integers $A=(A_1,A_2,\\dots,A_N)$, define $f(A)$ as follows:\n\n* The maximum value of $A_iA_j + A_k$ over all triples of integers $(i,j,k)$ satisfying $1 \\le i < ...",
"is_translate": false,
"language": "English"
}
]
}