I can't find what's wrong and I can't find any example that give me wrong output. Please help.
What did I do:
- sort input
- for every number check is there divisor before him
- if there is, calculate size and save position
Problem is not in lexicographically order.
http://www.z-trening.com/submit.php?subm_stat=1&submit=7100089515
What did I do:
- sort input
- for every number check is there divisor before him
- if there is, calculate size and save position
Problem is not in lexicographically order.
http://www.z-trening.com/submit.php?subm_stat=1&submit=7100089515