|
|
вернуться в форумHow many names should I print every time? I don't know why the example output 3 names, why it is three? Re: How many names should I print every time? Послано hatred 8 авг 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? Thank you. Re: How many names should I print every time? 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 |
|
|