Pagini recente » Diferente pentru utilizator/selony intre reviziile 2 si 3 | Diferente pentru utilizator/alexas intre reviziile 2 si 3 | Diferente pentru utilizator/informatician28 intre reviziile 15 si 14 | Diferente pentru problema/monopoly intre reviziile 19 si 20 | Diferente pentru problema/monopoly intre reviziile 35 si 34
Nu exista diferente intre titluri.
Diferente intre continut:
The first line contains the integers $N$ and $K$ (1 ≤ $N$ ≤ $1000$), (1 ≤ $K$ ≤ $1000$).
The second line contains $N$ integers T ~i~ (-10^9^ ≤ T ~i~ ≤ 10^9^).
h2. Restricţii
For tests worth $20$ points, $K = 1$.
For tests worth $30$ more points (1 ≤ $N$ ≤ $100$), (1 ≤ $K$ ≤ $100$).
h2. Date de ieşire
You need to write a single line with an integer: the amount of money Carlo loses during the game.
h2. Restricţii
* 1 ≤ $N$ ≤ $1000$
* 1 ≤ $K$ ≤ $1000$
* -10^9^ ≤ T ~i~ ≤ 10^9^
* For tests worth $20$ points, $K = 1$.
* For tests worth $30$ more points (1 ≤ $N$ ≤ $100$), (1 ≤ $K$ ≤ $100$).
h2. Exemplu
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.