Did you know that the 100th Fibonacci number equals 354224848179261915075 , which is longer than 16 digits,
Now that you know that, even in the worst case when the number of testcases equals to 10^5 , looping over 100 numbers 10^5 time still won't cause you the Time Limit Exceeded error.
Now that you know that, even in the worst case when the number of testcases equals to 10^5 , looping over 100 numbers 10^5 time still won't cause you the Time Limit Exceeded error.
No comments:
Post a Comment