it's ok.
edit: "The outputs of two consecutive cases will be separated by a blank line"
Search found 3 matches
- Sun Apr 22, 2007 9:15 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10032 - Tug of War
- Replies: 91
- Views: 43604
- Tue Nov 28, 2006 9:43 pm
- Forum: Volume 1 (100-199)
- Topic: 125 - Numbering Paths
- Replies: 56
- Views: 11367
125 Numbering Paths
My idea is following :
let A be a starting matrix ( relations between verteces ).
i am calculating next : A + A^2 + A^3 + ... + A^n ( for n=1 to e 60 ).
And, if in some step (A^2) > 0 then RESULT =-1..
So in future, when i am multiplying and situation is i,j,k
if ( EDGE[k][j] && RESULT [k]==-1 ...
let A be a starting matrix ( relations between verteces ).
i am calculating next : A + A^2 + A^3 + ... + A^n ( for n=1 to e 60 ).
And, if in some step (A^2) > 0 then RESULT =-1..
So in future, when i am multiplying and situation is i,j,k
if ( EDGE[k][j] && RESULT [k]==-1 ...
- Sat Nov 18, 2006 6:16 pm
- Forum: Volume 1 (100-199)
- Topic: 103 - Stacking Boxes
- Replies: 200
- Views: 50276
STL sort
I had problem with C++ STL sort()..
When i use it , i got WA , but with bubble sort it's AC..
I overload operators < and = ..What can be wrong?
When i use it , i got WA , but with bubble sort it's AC..
I overload operators < and = ..What can be wrong?