Comments

Predict Mine As Well... Thank You..

Let's say we have a number 70 --> 2 * 5 * 7, now according to you we can select d1 = 2 and d2 = 5 as they are co-prime but d1 + d2 = 7 i.e, not co-prime with 70 (gcd(7, 70) = 7)? If you meant something else.. please explain again if possible..? Thanks..

Can anyone help me find the complexity of my code..?for Problem D...THis is my code in java.. http://codeforces.me/contest/1027/submission/42027693 Thanks