36472023-03-01 18:18:09DohajovDanielToronyépítés (80 pont)python3Wrong answer 26/8076ms68092 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/017ms10892 KiB
2Wrong answer0/019ms12368 KiB
3Accepted4/417ms11576 KiB
4Accepted4/417ms11656 KiB
5Wrong answer0/517ms11976 KiB
6Wrong answer0/517ms12316 KiB
7Runtime error0/676ms68092 KiB
8Runtime error0/675ms67648 KiB
9Accepted7/717ms12564 KiB
10Accepted7/717ms12612 KiB
11Runtime error0/868ms67500 KiB
12Runtime error0/875ms67276 KiB
13Runtime error0/867ms67076 KiB
14Runtime error0/874ms66840 KiB
15Accepted2/217ms13372 KiB
16Accepted2/217ms13772 KiB