Pagini recente » Diferente pentru problema/dreptunghi2 intre reviziile 20 si 12 | Diferente pentru utilizator/alecsandru intre reviziile 17 si 11 | Diferente pentru utilizator/protoman intre reviziile 74 si 20 | Diferente pentru utilizator/alexandru92 intre reviziile 1 si 151 | Diferente pentru problema/police intre reviziile 7 si 6
Nu exista diferente intre titluri.
Diferente intre continut:
h2. Date de intrare
The first line of the input file $police.in$ contains 4 integers: $N$ (the number of semaphores), $R$ (the number of semaphores William can skip), $T$ (the half-period of the semaphores), and $L$ (the length of the street).
The second line contains $N$ integers: the coordinates X[i].
h2. Date de ieşire
The output file $police.out$ contains a single line with an integer: the minimum time in seconds that will be needed to reach the nest.
h2. Restricţii
* $1 ≤ R ≤ N ≤ 10000$
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.