API Response (JSON)
{
"problem": {
"name": "Shuffle and mod K",
"description": {
"content": "You are given an integer sequence $A=(A_1,A_2,\\dots,A_N)$ of length $N$. You can rearrange $A$ freely. Find the maximum value that $\\sum_{i=1}^{N-1} ((A_{i+1} - A_i) \\bmod K)$ can take after rearrangi",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc065_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an integer sequence $A=(A_1,A_2,\\dots,A_N)$ of length $N$.\nYou can rearrange $A$ freely. Find the maximum value that $\\sum_{i=1}^{N-1} ((A_{i+1} - A_i) \\bmod K)$ can take after rearrangi...",
"is_translate": false,
"language": "English"
}
]
}