Project Euler #25: N-digit Fibonacci number

  • + 0 comments

    **Can someone explain to me why this code is runtime error **

    #List a save the result
    a = [0, 1, 7, 12, 17, 21, 26, 31, 36, 40, 45, 50, 55, 60, 64, 69, 74, 79, 84, 88, 93, 98, 103, 
     107, 112, 117, 122, 127, 131, 136, 141, 146, 151, 155, 160, 165, 170, 174, 179, 184, 189,
     194, 198, 203, 208, 213, 217, 222, 227, 232, 237, 241, 246, 251, 256, 261, 265, 270, 275,
     280, 284, 289, 294, 299, 304, 308, 313, 318, 323, 328, 332, 337, 342, 347, 351, 356, 361,
     366, 371, 375, 380, 385, 390, 395, 399, 404, 409, 414, 418, 423, 428, 433, 438, 442, 447,
     452, 457, 462, 466, 471]
     
    t = int(input())
    for i in range(t):
        n = int(input())