[Solution] File Copy II Codeforces Solution VK Cup
In this version of the task, the sizes of copied files do not exceedbyte.
You are copying from one server to anotherfiles sizebyte. The files are copied sequentially in the specified order.
When copying, you see two progress bars: the first shows the percentage of copied data in the current file, and the second shows the total percentage of copied data for allfiles. Both percentages are displayed rounded down to a whole number. The values on the progress bars are updated after each byte is copied.
Formally, after copying the byte numberfrom file numberfirst progress bar showspercent, and the secondpercent. At the very beginning of copying, both progress bars showpercent.
Find all such integers fromtoinclusive, that there is a point in time at which both progress bars show this number at the same time. Print these numbers in ascending order.
The first line contains one integer () is the number of copied files.
The second line containsintegers() — file sizes in bytes in the order in which they will be copied.
Print in ascending order all numbers fromtoinclusive such that there is a moment in time at which this number is simultaneously shown on both progress bars.
No comments:
Post a Comment