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 1029. Ministry

Some Clarification Please...
Posted by Lomir 24 Dec 2006 20:22
What is the right answer for this input?
5 5
10 1  10 10 10
1  1  10 10 10
1  10 1  1  1
1  1  1  10 1
10 10 10 10 1
???
Re: Some Clarification Please...
Posted by KIRILL(ArcSTU) 24 Dec 2006 21:36
My prog out
2
2
1
1
1
1
Re: Some Clarification Please...
Posted by Lomir 24 Dec 2006 22:54
Thx... Now got WA2 instead of WA1... and as usual do not know any bugs :)))
Re: Some Clarification Please...
my program print exactly :
2 2 1 1 1 2 3 3 4 5 5 5