I was submitting a matrix exponentiation code in C language for finding the nth fibonacci and I was using long long int variable for storing the answer modulo 10000007 of nth fibonacci, and the judge was giving "time limit exceeded" but when I used "unsigned long long int" my code was accepted within the time and the execution time was reduced.
I was unable to understand why long long int was giving "time limit exceeded" and "unsigned long long int" was accepted? (Answers for extreme test cases were coming correct in both cases)