Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat duels/881

Duel #881

A 1v1 battle on the problem «Electricity bill».

@malikaxanim_08 · Elo: 1289 (-20) · Pupil
Gave up (technical defeat)
Tests: 0/20 (0%)
BATTLE OVER Winner: Murodbek Qurbonov Technical win (the rival gave up)
@qurbonovmurodbek · Pupil · Elo: 1232 (+20)
Winner (technical win)
Tests: 0/20 (0%)

Winner: Murodbek Qurbonov

One of the players gave up — the winner gets a technical win.

If-38 If Medium 1000 ms 64 MB

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.

An electricity bill by a three-tier tariff

Sample tests

Input #1
150
Output #1
90000
Input #2
350
Output #2
255000

Battle results compared

1v1 report
Malika Sharipova
@malikaxanim_08
Gave up
Murodbek Qurbonov
@qurbonovmurodbek
Winner (technical)
— Solve time —
0 Submissions 0
— Language —
— Run time —

Submission timeline (0)

All submissions

No submissions yet.

Murodbek Qurbonov won

One of the players gave up — the winner gets a technical win.

M Malika Sharipova
Solution: Not solved
Rating: 1289 (-20)
M Murodbek Qurbonov
Solution: Not solved
Rating: 1232 (+20)
Start a new duel