Differentiating math from CP

What always confuses me is if a problem is a CP problem(requiring data structures) or does it have a closed for math solutions. That is what is happening in the recent feb challenge as well. Any tips on knowing when to apply what and if it will work or not?