113752024-08-28 09:05:0942Járda-L (40)python3Accepted 40/4017ms3216 KiB
A=[1,1,2,5,11,24,53,117,258,569,1255,2768,6105,13465,29698,65501,144467,318632,702765,1549997,3418626,7540017,16630031,36678688,80897393,178424817,393528322,867954037,1914332891,4222194104,9312342245,20539017381,45300228866]#a_n=2a_n-1+a_n-3 
print(A[int(input())])
SubtaskSumTestVerdictTimeMemory
base40/40
1Accepted0/017ms3136 KiB
2Accepted0/017ms3124 KiB
3Accepted2/216ms3088 KiB
4Accepted2/217ms3048 KiB
5Accepted2/217ms3032 KiB
6Accepted2/217ms3096 KiB
7Accepted2/216ms3036 KiB
8Accepted3/316ms3052 KiB
9Accepted3/316ms3048 KiB
10Accepted3/317ms3144 KiB
11Accepted3/316ms3192 KiB
12Accepted3/314ms3088 KiB
13Accepted3/316ms2972 KiB
14Accepted3/316ms3192 KiB
15Accepted3/317ms3088 KiB
16Accepted3/317ms3132 KiB
17Accepted3/316ms3216 KiB