Page 2 of 2

Re: 10895 - Matrix Transpose

Posted: Wed Feb 25, 2015 5:51 pm
by arash
brianfry713 wrote:Change line 48 to:
for (int j=0; j < v.size() && v[j].first.first==i; j++) {

yesssssss :D
thank you sooooooo much :wink:

Re: 10895 - Matrix Transpose

Posted: Fri Mar 06, 2015 3:30 pm
by hquilo
Some sample test cases

Input

Code: Select all

4 2
1 1
1
1 1
2
1 1
3
1 1
4
4 4
1 1
1
1 2
2
1 3
3
1 4
4
1 1
1 1
8
1 2
2 1 2
1 -1
AC output:

Code: Select all

2 4
4 1 2 3 4
1 2 3 4
0

4 4
1 1
1
1 2
2
1 3
3
1 4
4
1 1
1 1
8
2 1
1 1
1
1 1
-1

Re: 10895 - Matrix Transpose

Posted: Thu Apr 16, 2015 1:03 pm
by uDebug
Added some input to help with testing / debugging here:

http://www.udebug.com/UVa/10895