My first solution to this problem was very similiar to yours and I got the same problem as you: a lot of wrong answers :cry: .
One day I just thought that the floyd algorithm wasn`t doing the induction as I wanted, so I ran the floyd algorithm twice and my code got accepted.
I submitted your ...
Search found 2 matches
- Thu Sep 05, 2002 5:02 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10246 - Asterix and Obelix
- Replies: 29
- Views: 14650
- Sat Jul 13, 2002 7:06 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10002 - Center of Masses
- Replies: 59
- Views: 32613
Test cases
Does anyone have some test cases for this problem?
I just can't find what is wrong on my algorithm....
thanks,
sobral
I just can't find what is wrong on my algorithm....
thanks,
sobral