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 1139. City Blocks

not clear
Posted by Najmaddin Akhundov 9 Nov 2014 03:16
for input 3 3, I guess the result should be 3. Why it is 2?
Re: not clear
Posted by GastonFontenla 24 Aug 2015 02:23
Because the matrix is formed by (n-1) x (m-1) squares, and nxm corners, understand? You need to calculare how much squares has you overflown.