ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1821. Biathlon

How many names should I print every time?
Posted by liushujia 7 Aug 2011 12:46
I don't know why the example output 3 names, why it is three?
Re: How many names should I print every time?
Posted by hatred 8 Aug 2011 02:58
cause:
wheh first contestant finished, he is the best,counter = 1;
every next finished (by finish time) compares with the best by running time - if he better, he becomes the best, and we increment counter;
finally, we print counter and list of all who became the best

in the sample:
first finished Zaytseva (at 21:38.2)
second finished Hauswald (at 21:21.0 + 30 sec from start = 21:51.0). She becomes the best;
next finished Boulygina (at 22:04.4 + 1 min = 23:04.4);
next Wilhelm (at 21:11.1 + 2m = 23:11.1). She becomes the best;
next Henkel (at 22:06.1 + 1m30s = 23:36.1);
last Johnson (at 22:05.8 +2:30 = 24:35.8).

Edited by author 08.08.2011 03:05
Re: How many names should I print every time?
Posted by liushujia 8 Aug 2011 12:56
Thank you.
Re: How many names should I print every time?
Posted by [RSU_Tash]Nodirbek_Kuklamov 31 Oct 2011 23:59
But why we must calculate finish times if there are given running times. And, Why Hauswald becames the best? Why Wilhelm?

Only way to understand this: if Wilhelm comes 1 (21:11.1), then Hauswald 2(21.21.0), and Zaytseva 3 (21.38.2) (by running time).

Sorry, if I miss error.

Edited by author 01.11.2011 00:00