"Each test case begins with a line containing 4 integers m, n, k, t (2<=m,n<=100, 1<=k<=50, 1<=t<=2k+1)."

"The following n lines each contains m integers, indicating the heights of squares. The jth integer of the ith is the height of square (xi,yi). Heights are integers between 0 and 100."

In the sample input there are m lines with n integers. Where's the error?

## 10418 - Hyper Toy Soldiers

**Moderator:** Board moderators

### 10418 - Hyper Toy Soldiers

I am trying to solve UVA10418 Hyper Toy Soldiers (using max. bipartite matching)

and pass every test cases I can find or think of, including those on Algorithmist.

However I still getting WA...

Please can someone give me some hints on this problem, like is there any tricky test case or trap in the I/O format?

PS: I was so desperated that I try to search some test cases / resources on google, then I find someone paste a piece of source code in GitHub.

I do not know if the code really solves the problem, so I try to find this user name in UVA, then I can see he really solves the problem 10418.

So I assume his code on GitHub is correct, then I try to random generate some input and compare my output with his, and so far I found the output are the same...

So I try to submit his code (without really reading the code) to UVA but still getting WA..

I am so desperate now, can someone please help me? any suggestion maybe helpful! thanks!

and pass every test cases I can find or think of, including those on Algorithmist.

However I still getting WA...

Please can someone give me some hints on this problem, like is there any tricky test case or trap in the I/O format?

PS: I was so desperated that I try to search some test cases / resources on google, then I find someone paste a piece of source code in GitHub.

I do not know if the code really solves the problem, so I try to find this user name in UVA, then I can see he really solves the problem 10418.

So I assume his code on GitHub is correct, then I try to random generate some input and compare my output with his, and so far I found the output are the same...

So I try to submit his code (without really reading the code) to UVA but still getting WA..

I am so desperate now, can someone please help me? any suggestion maybe helpful! thanks!