Nu aveti permisiuni pentru a descarca fisierul grader_test2.ok
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