can someone explain how to do this problem http://codeforces.me/contest/134/problem/B
i used dfs that resulted in TLE, number theory tag is given at hints, but i am not able to understand how to do it ?
|
»
cerealguy
|
15 years ago,
hide
#
|
+11
TCO10 Round 1 level 2
→
Reply
|