i don't now why i'm getting WA in ACPC10B
spoj.pl/problems/ACPC10B/
deleted after ac
i think i did not undestand what the problem ask for , he want to find the (minimum) sum of the lengths of the two sequences.
is he mean that we generate the two sequences numbers until reach common number ,then find the sum of the 1st sequence leanth and the other leanth.
like in case 61 and 29
61 : 61, 37, 58, 89 (len =4 )
29 : 29, 85, 89 (len =3)
sum = 4 + 3 = 7