link for question -> https://www.codechef.com/LTIME106B/problems/MATHOLOGY/ The question was bit tricky, Can anyone help with the approach for this question ?
link for question -> https://www.codechef.com/LTIME106B/problems/MATHOLOGY/ The question was bit tricky, Can anyone help with the approach for this question ?