137312025-01-08 15:27:07birozsJárda-L (40)python3Wrong answer 4/4017ms3256 KiB
N = int(input())
lista = [0,1,3,5]
if N <= 3:
    print(lista[N])
else:
    for i in range(4,N+1):
        lista.append(2*lista[i-1]+lista[i-3])
    print(lista[N])
SubtaskSumTestVerdictTimeMemory
base4/40
1Accepted0/014ms3088 KiB
2Wrong answer0/016ms2868 KiB
3Accepted2/216ms2856 KiB
4Wrong answer0/214ms2868 KiB
5Accepted2/216ms2988 KiB
6Wrong answer0/216ms2984 KiB
7Wrong answer0/214ms2980 KiB
8Wrong answer0/316ms3096 KiB
9Wrong answer0/316ms2868 KiB
10Wrong answer0/314ms2864 KiB
11Wrong answer0/314ms3056 KiB
12Wrong answer0/316ms2872 KiB
13Wrong answer0/317ms3124 KiB
14Wrong answer0/316ms2868 KiB
15Wrong answer0/316ms3256 KiB
16Wrong answer0/316ms2884 KiB
17Wrong answer0/314ms3084 KiB