Chat Ban
MediumRating 1300CodeforcesBinary Search on Answer
Approach hintTry it first, then revealHide
Write a function for the number of emotes in the first t messages, using triangular numbers for the rising part and for the falling part. It increases with t, so binary search the first t reaching x, capped at 2k - 1.