Pagini recente » Diferente pentru utilizator/andreea1cool intre reviziile 16 si 11 | Diferente pentru problema/monopoly intre reviziile 42 si 31 | Diferente pentru utilizator/gerd13 intre reviziile 89 si 2 | Diferente pentru utilizator/informatician28 intre reviziile 16 si 17 | Diferente pentru problema/monopoly intre reviziile 34 si 35
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.