~/algor $ cat duels/881
Duel #881
A 1v1 battle on the problem «Electricity bill».
Winner: Murodbek Qurbonov
One of the players gave up — the winner gets a technical win.
Electricity bill
In a month, kilowatt-hours of electricity were used. The bill is computed in tiers: each of the first kilowatt-hours costs soums, each kilowatt-hour from the st to the th costs soums, and each kilowatt-hour above costs soums. Find the monthly bill in soums.
Sample tests
150
90000
350
255000
Battle results compared
1v1 reportSubmission timeline (0)
All submissionsNo submissions yet.
Murodbek Qurbonov won
One of the players gave up — the winner gets a technical win.