~/algor $ cat duels/553
Duel #553
A 1v1 battle on the problem «Calendar row and column».
Winner: Sojida Otaqulova
The winner was the first to solve it correctly — in 2 min 33 s.
Calendar row and column
A month's calendar is written as a table: each row has $7$ columns, column $1$ is Monday, …, column $7$ is Sunday. Day $1$ of the month falls on day $d$ of the week and is written in column $d$ of row $1$; the following days continue along that row, and when the row ends they continue from column $1$ of the next row. Find the row and the column of day $k$.
Sample tests
3 17
3 5
7 1
1 7
Battle results compared
1v1 reportSubmission timeline (1)
All submissionsSojida Otaqulova won
The 1v1 battle ended after a hard fight.
1v1 DUEL IS STARTING
Loading the arena...