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 1507. Difficult Decision

George_Aloyan[PTS Obninsk] WA 33 [1] // Problem 1507. Difficult Decision 1 Apr 2012 19:32
Just "norm" matrix after every calculating (a[i][j] make 1 if it was positive) or you will have overflow
Smilodon_am [Obninsk INPE] Re: WA 33 // Problem 1507. Difficult Decision 2 Apr 2012 11:51
You can only use matrix with boolean values, it looks more efficient and spectacular.