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 1676. Mortal Kombat

WA8 give me some tests
Posted by Michail Yudin 18 Jan 2009 23:26
Thx a lot for every man and women for tests.
Re: WA8 give me some tests
Posted by Al.Cash 30 Jan 2009 16:34
Try this:

4 4
1111
1110
1100
1000

The answer:
1110
1101
1011
0111
Re: WA8 give me some tests
Posted by Jorjia 18 Nov 2018 21:37
My code gives right answer for this test, but still got WA8.

My algo:
1) find any perfect match (I use kuhn algorithm). If there no perfect match print unary matrix and quit.

2) for every i-monster,  remove  edge (i, match(i)), and try make alternate path for i. save result in d[] array,  and restore edge (i, match(i)) .

3) We can select (i,j) edge  only if  Mij = true AND     (i,j) edge in perfect match, or j is free vertex,  or  d[ match( j ) ] is true.

Can give some tests ?
Re: WA8 give me some tests
Posted by Mickkie 29 Nov 2023 23:38
Test:
6 7
1111000
1110000
1100000
1000100
0000110
0000110

WA8 answer:
0000111
0001111
0011111
0111011
1111001
1111001