Please help me that why gcd concept is used here and what is the logic behind using this?
This is the question link: https://www.codechef.com/RDEC2021/problems/RDC5.
Thanks in advance
Please help me that why gcd concept is used here and what is the logic behind using this?
This is the question link: https://www.codechef.com/RDEC2021/problems/RDC5.
Thanks in advance
Rishabh we will be posting the editorial tomorrow there we will explain the logic. Thanks for participating in Rang De Code.
For a moment I thought that the contest was a scam