Pixel · Easy CodeFree
One Good Second
The frog choir sings whenever it likes, each frog for its own stretch of seconds. The photographer gets one click for the album cover. When are the most frogs singing at once?
Find the earliest second with the most frogs singing, and how many sing then.
Both numbers must be exactly right.
N, the number of frogs.N lines: s e. The frog sings from second s up to second e, without e.t c, the earliest second with the most singers, and how many sing then.N ≤ 100s < e ≤ 1 000, and 0 ≤ t ≤ 1 0006 1 4 2 6 3 5 4 7 5 8 7 9
3 3
Sign in to play. It is free.
Sign in