Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat duels/554

Duel #554

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

@akh1khayrullayev · Elo: 1160 (+22) · Newbie
Winner (technical win)
Tests: 0/20 (0%)
BATTLE OVER Winner: Asadbek Xayrullayev Technical win (the rival gave up)
Pupil · Elo: 1258 (-22) · @sojida_otaqulova
Gave up (technical defeat)
Tests: 0/20 (0%)

Winner: Asadbek Xayrullayev

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

Case-07 Case Easy 1000 ms 64 MB

Quarter of the year

The number of a month $m$ is given. Determine which quarter of the year the month is in: quarter $1$ — months $1$, $2$, $3$; quarter $2$ — months $4$, $5$, $6$; quarter $3$ — months $7$, $8$, $9$; quarter $4$ — months $10$, $11$, $12$.

Twelve months split into four quarters; the quarter of the given month highlighted

Sample tests

Input #1
5
Output #1
2
Input #2
12
Output #2
4

Battle results compared

1v1 report
Asadbek Xayrullayev
@akh1khayrullayev
Winner (technical)
Sojida Otaqulova
@sojida_otaqulova
Gave up
— Solve time —
0 Submissions 0
— Language —
— Run time —

Submission timeline (0)

All submissions
No submissions yet.

Asadbek Xayrullayev won

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

A Asadbek Xayrullayev
Solution: Not solved
Rating: 1160 (+22)
S Sojida Otaqulova
Solution: Not solved
Rating: 1258 (-22)
RIVAL FOUND!

1v1 DUEL IS STARTING

Asadbek Xayrullayev 1138 Elo
VS 15 minutes
Sojida Otaqulova 1257 Elo

Loading the arena...