Editorial
Set . These values are distinct and lie between and .
A contiguous subsequence of length starting with has sum , so its average is always an integer.
The time complexity is .
Solution written by GPT5
Preparing the statement, recent submissions, and submit form.
Set . These values are distinct and lie between and .
A contiguous subsequence of length starting with has sum , so its average is always an integer.
The time complexity is .
Solution written by GPT5