36482023-03-01 18:19:08DohajovDanielToronyépítés (80 pont)python3Wrong answer 26/8075ms67868 KiB
m=int(input())
dbL=[0,3,10]
for i in range(3,m+1):
    dbL.append(dbL[i-1]*3+dbL[i-2]*1)
print(dbL[m])
SubtaskSumTestVerdictTimeMemory
base26/80
1Accepted0/017ms10928 KiB
2Wrong answer0/019ms12044 KiB
3Accepted4/417ms11408 KiB
4Accepted4/417ms11488 KiB
5Wrong answer0/517ms11836 KiB
6Wrong answer0/517ms11844 KiB
7Runtime error0/675ms67868 KiB
8Runtime error0/675ms67672 KiB
9Accepted7/717ms12744 KiB
10Accepted7/717ms12616 KiB
11Runtime error0/875ms67528 KiB
12Runtime error0/874ms67196 KiB
13Runtime error0/867ms66924 KiB
14Runtime error0/868ms67048 KiB
15Accepted2/217ms13012 KiB
16Accepted2/217ms13240 KiB