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 1319. Hotel

hint
Posted by Mostafa Tantawy 29 Apr 2017 21:48
divide  the matrex into three divisions >> above the diagonal >>> the diagonal>>under the diagonal
simulate more than matrix for insure your answer