Asking for help

#Disclaimer: I am not asking code.

I somewhat have an idea about this problem but unable to code it.
If someone can give a little hint,then I would be helpful.
Here goes the problem:
https://www.codechef.com/AUG18B/problems/PROBLEMS
I am unable to give the correct input and output format in this question
Can anyone help me know how do I take input in this question?
I can help you out in gcd question
Last edited on
https://www.codechef.com/codeofconduct

Why do you ask a "Python 3.6" question on a "C++" Forum?
Topic archived. No new replies allowed.