5 1 7 3 9 7 18 10 14 15 20
4 11 The maximum value of $f(l, r)$ is $4$, and among the pairs $(l, r)$ that achieve $f(l, r) = 4$, the smallest $l$ is $4$. The pairs $(l, r)$ that satisfy $f(l, r) = 4$ and $l = 4$ are the following five: * $(l, r) = (4, 11)$ * $(l, r) = (4, 12)$ * $(l, r) = (4, 13)$ * $(l, r) = (4, 16)$ * $(l, r) = (4, 17)$ Among these, the smallest $r$ is $11$, so print $4$ and $11$.
11 856977192 996441446 298251737 935869360 396653206 658841528 710569907 929136831 325371222 425309117 379628374 697340458 835681913 939343451 140179224 887672320 375607390 611397526 93530028 581033295 249611310 775998537
396653207 887672321
{
"problem": {
"name": "InterSections",
"description": {
"content": "You are given $N$ intervals numbered $1$ to $N$. Interval $i$ is $[L_i, R_i]$. Two intervals $[l_a, r_a]$ and $[l_b, r_b]$ are said to **intersect** if and only if they satisfy either $(l_a < l_b < r_",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc360_f"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given $N$ intervals numbered $1$ to $N$. Interval $i$ is $[L_i, R_i]$.\nTwo intervals $[l_a, r_a]$ and $[l_b, r_b]$ are said to **intersect** if and only if they satisfy either $(l_a < l_b < r_...",
"is_translate": false,
"language": "English"
}
]
}