137402025-01-08 16:09:30fzs1969Járda-L (40)python3Accepted 40/4016ms3112 KiB
N=int(input())
T=[1,2,5]
for i in range(3,N):
    T.append(2*T[i-1]+T[i-3])
print(T[N-1])
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/014ms2880 KiB
2Accepted0/014ms3060 KiB
3Accepted2/216ms2868 KiB
4Accepted2/216ms2868 KiB
5Accepted2/216ms2876 KiB
6Accepted2/216ms3060 KiB
7Accepted2/216ms2860 KiB
8Accepted3/316ms3060 KiB
9Accepted3/316ms3064 KiB
10Accepted3/316ms3056 KiB
11Accepted3/314ms2868 KiB
12Accepted3/316ms3112 KiB
13Accepted3/314ms2868 KiB
14Accepted3/316ms3072 KiB
15Accepted3/316ms3076 KiB
16Accepted3/314ms2868 KiB
17Accepted3/316ms2868 KiB