|
|
вернуться в форумWhat is wrong with my code? import math a = int(input()) ans = 0 now = 2 while now < a:
ans = ans + (math.factorial(a)/math.factorial(a - now)) now = now + 1 ans = ans + math.factorial(a) print(int(ans)) Re: What is wrong with my code? Maybe your should do integer division // rather than real division /? |
|
|