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

~/algor $ cat duels/865

Duel #865

A 1v1 battle on the problem «Day of the year».

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

Winner: Murodbek Qurbonov

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

Case-30 Case Easy 1000 ms 64 MB

Day of the year

A date of a non-leap year is given: day and month . Determine which day of the year it is: January 1 is day , December 31 is day . Months have days, months have days, and February has days.

The sequence of days passed since the start of the year

Sample tests

Input #1
3 2
Output #1
34
Input #2
31 12
Output #2
365

Battle results compared

1v1 report
Murodbek Qurbonov
@qurbonovmurodbek
Winner (technical)
Malika Sharipova
@malikaxanim_08
Gave up
— 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 Murodbek Qurbonov
Solution: Not solved
Rating: 1222 (+22)
M Malika Sharipova
Solution: Not solved
Rating: 1311 (-22)
Start a new duel