Problem B

Statement
Copy Copied
Description:
Whereas humans nowadays read fewer and fewer books on paper, book readership among marmots has surged. Heidi has expanded the library and is now serving longer request sequences.

Input Format:
Same as the easy version, but the limits have changed: 1 ≤ n, k ≤ 400 000.

Output Format:
Same as the easy version.

Note:
None

Submissions

IDLanguageExit CodeTimestampCodeStdoutStderrRetry
5902 go 1 2026-03-22T04:54:15.112681Z View View View Retry
5899 go 1 2026-03-22T04:48:12.8225Z View View View Retry
5889 go 1 2026-03-22T04:24:51.067795Z View View View Retry
5865 go 1 2026-03-22T04:12:07.078959Z View View View Retry

Evaluations

Eval IDRun IDProviderModelLangSuccessTimestampPromptResponseStdoutStderrRetry
3315 20260321-220010 openai gpt-5.4 go false 2026-03-21T22:14:44.943168Z View View View View Retry