7 0 240 720 1320 1440 1800 2160 3 480 1920 720 1200 0 2160
480 0 960 Takahashi slept as shown in the following figure.  The answers to each question are as follows. * Between $480$ minutes and $1920$ minutes after starting the sleep log, Takahashi slept from $480$ minutes to $720$ minutes, from $1320$ minutes to $1440$ minutes, and from $1800$ minutes to $1920$ minutes in $3$ sleep sessions. The total sleep time is $240+120+120=480$ minutes. * Between $720$ minutes and $1200$ minutes after starting the sleep log, Takahashi did not sleep. The total sleep time is $0$ minutes. * Between $0$ minutes and $2160$ minutes after starting the sleep log, Takahashi slept from $240$ minutes to $720$ minutes, from $1320$ minutes to $1440$ minutes, and from $1800$ minutes to $2160$ minutes in $3$ sleep sessions. The total sleep time is $480+120+360=960$ minutes. Therefore, the three lines of the output should contain $480$, $0$, and $960$.
21 0 20 62 192 284 310 323 324 352 374 409 452 486 512 523 594 677 814 838 946 1000 10 77 721 255 541 478 970 369 466 343 541 42 165 16 618 222 592 730 983 338 747
296 150 150 49 89 20 279 183 61 177
{
"problem": {
"name": "Sleep Log",
"description": {
"content": "Takahashi keeps a sleep log. The log is represented as an odd-length sequence $A=(A _ 1(=0), A _ 2,\\ldots,A _ N)$, where odd-numbered elements represent times he got up, and even-numbered elements rep",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc305_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Takahashi keeps a sleep log. The log is represented as an odd-length sequence $A=(A _ 1(=0), A _ 2,\\ldots,A _ N)$, where odd-numbered elements represent times he got up, and even-numbered elements rep...",
"is_translate": false,
"language": "English"
}
]
}