Why i am getting TLE in super power of 2

problem link http://www.codechef.com/problems/SPOTWO

my solution http://www.codechef.com/viewsolution/6793108

mugurelionut’s solution http://www.codechef.com/viewsolution/2905301

i run both code on my codeblock on custom input many times. My code gives faster output than “mugurelionut” code (execution time on codeblock)
i cant understand why i am getting tle
PLEASE HELP!!!

You have while(t) and t never changes so it loops forever. Also you should probably use %llu to printf unsigned long longs.

1 Like

thanx
i was just…