3 19
5 3 4 4 8 8 16 16 18 18 19 $S(3,19)=(3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18)$ can be divided into the following five good sequences, which is the minimum possible number: * $S(3,4)=S(2^0\cdot 3,2^0\cdot4)=(3)$ * $S(4,8)=S(2^2\cdot 1,2^2\cdot 2)=(4,5,6,7)$ * $S(8,16)=S(2^3\cdot 1,2^3\cdot 2)=(8,9,10,11,12,13,14,15)$ * $S(16,18)=S(2^1\cdot 8,2^1\cdot 9)=(16,17)$ * $S(18,19)=S(2^0\cdot 18,2^0\cdot 19)=(18)$
0 1024
1 0 1024
3940649673945088 11549545024454656
8 3940649673945088 3940649673949184 3940649673949184 4503599627370496 4503599627370496 9007199254740992 9007199254740992 11258999068426240 11258999068426240 11540474045136896 11540474045136896 11549270138159104 11549270138159104 11549545016066048 11549545016066048 11549545024454656
{
"problem": {
"name": "Divide Interval",
"description": {
"content": "For non-negative integers $l$ and $r$ $(l < r)$, let $S(l, r)$ denote the sequence $(l, l+1, \\ldots, r-2, r-1)$ formed by arranging integers from $l$ through $r-1$ in order. Furthermore, a sequence is",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc349_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "For non-negative integers $l$ and $r$ $(l < r)$, let $S(l, r)$ denote the sequence $(l, l+1, \\ldots, r-2, r-1)$ formed by arranging integers from $l$ through $r-1$ in order. Furthermore, a sequence is...",
"is_translate": false,
"language": "English"
}
]
}