137392025-01-08 16:03:27fzs1969Járda-L (40)python3Accepted 40/4017ms3072 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/016ms2868 KiB
2Accepted0/014ms2868 KiB
3Accepted2/214ms2876 KiB
4Accepted2/214ms2872 KiB
5Accepted2/216ms3060 KiB
6Accepted2/216ms2864 KiB
7Accepted2/217ms3072 KiB
8Accepted3/316ms2868 KiB
9Accepted3/316ms2888 KiB
10Accepted3/317ms2868 KiB
11Accepted3/314ms2984 KiB
12Accepted3/316ms2976 KiB
13Accepted3/316ms3072 KiB
14Accepted3/316ms2844 KiB
15Accepted3/314ms2936 KiB
16Accepted3/314ms2852 KiB
17Accepted3/314ms2868 KiB