GP1 – Hardest SPOJ problem solved by me till date ;)

16 Feb

Problem Statement : Geometric progression(GP) is a set in which the ratio of 2 consecutive numbers is same. for eg, 1,2,4,8,16…. In this the ratio of the numbers is 2. The task here is very simple indeed. You will be given the 3rd term , 3rd last term and the sum of the series. You [...]