135732025-01-08 10:08:25fzs1969Járda-L (40)python3Wrong answer 36/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[-1])
SubtaskSumTestVerdictTimeMemory
base36/40
1Accepted0/016ms2884 KiB
2Accepted0/016ms2868 KiB
3Wrong answer0/214ms2884 KiB
4Wrong answer0/216ms2940 KiB
5Accepted2/216ms3112 KiB
6Accepted2/216ms3056 KiB
7Accepted2/214ms2864 KiB
8Accepted3/316ms2864 KiB
9Accepted3/316ms2956 KiB
10Accepted3/314ms3036 KiB
11Accepted3/316ms3028 KiB
12Accepted3/314ms3068 KiB
13Accepted3/314ms3052 KiB
14Accepted3/314ms3076 KiB
15Accepted3/316ms2880 KiB
16Accepted3/316ms2888 KiB
17Accepted3/316ms3064 KiB