ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1224. Spiral

Solution to that evil problem.
Posted by Mahilewets 20 Jun 2017 16:20
answer = min(2*(n-1), 2*m-1);
//don't forget about 32-bit signed  integer overflow
Re: Solution to that evil problem.
Posted by Max 10 Nov 2020 14:40
Error on test 1