I have read every threads about 122, but got wrong answer again and again. :(
I guess the problem is from "not complete" case. And to my understand, the "not complete" should be printed when one input data has the following cases:
nodes without parents
nodes with two values, like (1,) and (2,)
no ...
Search found 2 matches
- Wed Sep 08, 2010 6:25 am
- Forum: Volume 1 (100-199)
- Topic: 122 - Trees on the level
- Replies: 103
- Views: 22039
- Sat Jul 24, 2010 10:44 am
- Forum: Volume 106 (10600-10699)
- Topic: 10627 - Infinite Race
- Replies: 10
- Views: 8223
Re: 10627 - Infinite Race
From http://uvatoolkit.com/problemssolve.php, I know this problem could be solved by gcd or other math methods. However, I didn't know how to use them for this problem. Could someone please give me more hints? Thanks. 
