123572024-12-13 10:33:03SunDisznoJárda-L (40)python3Runtime error 0/4017ms3084 KiB
def sorozat(n):
    if n == 1:
        return 1
    elif n == 2:
        return 2
    elif n == 3:
        return 5
    else:
        return 2*sorozat(n-1) + sorozat(n-3)
print(sorozat(input()))
SubtaskSumTestVerdictTimeMemory
base0/40
1Runtime error0/016ms2872 KiB
2Runtime error0/016ms2872 KiB
3Runtime error0/216ms3060 KiB
4Runtime error0/216ms2872 KiB
5Runtime error0/216ms2872 KiB
6Runtime error0/216ms3068 KiB
7Runtime error0/216ms2980 KiB
8Runtime error0/316ms3060 KiB
9Runtime error0/316ms2852 KiB
10Runtime error0/316ms3052 KiB
11Runtime error0/314ms3072 KiB
12Runtime error0/314ms2968 KiB
13Runtime error0/317ms2892 KiB
14Runtime error0/316ms3072 KiB
15Runtime error0/314ms2868 KiB
16Runtime error0/316ms3084 KiB
17Runtime error0/314ms2872 KiB