**Solution Link:**http://www.codechef.com/viewsolution/4137920
**Problem Link:**http://www.codechef.com/problems/PNTNG
Thanks in advance!
**Solution Link:**http://www.codechef.com/viewsolution/4137920
**Problem Link:**http://www.codechef.com/problems/PNTNG
Thanks in advance!
In your struct convert int to long long int because t<=10^12 and int will cause overflow problem .
Here is your corrected code :
[1]
[1]: http://www.codechef.com/viewsolution/4137993
Welcome and please mark it as correct answer If you think it is right .
solution link: http://www.codechef.com/viewsolution/5077420
Problem Link:http://www.codechef.com/problems/PNTNG
i am getting run time error… anyone plzz help