36542023-03-01 19:04:32DohajovDanielÁruszállítás (75 pont)python3Runtime error 0/7518ms13748 KiB
m=int(input())
dbL=[0,3,10]
for i in range(3,m+1):
    dbL.append((dbL[i-1]*3+dbL[i-2])%20210108)
print(dbL[m])
SubtaskSumTestVerdictTimeMemory
base0/75
1Runtime error0/018ms11056 KiB
2Runtime error0/017ms11324 KiB
3Runtime error0/317ms11480 KiB
4Runtime error0/317ms12008 KiB
5Runtime error0/317ms11864 KiB
6Runtime error0/317ms12060 KiB
7Runtime error0/317ms12180 KiB
8Runtime error0/417ms12400 KiB
9Runtime error0/417ms12452 KiB
10Runtime error0/417ms12408 KiB
11Runtime error0/417ms12488 KiB
12Runtime error0/417ms12636 KiB
13Runtime error0/417ms13224 KiB
14Runtime error0/417ms12920 KiB
15Runtime error0/417ms12948 KiB
16Runtime error0/417ms13200 KiB
17Runtime error0/417ms13688 KiB
18Runtime error0/417ms13728 KiB
19Runtime error0/417ms13668 KiB
20Runtime error0/417ms13692 KiB
21Runtime error0/417ms13708 KiB
22Runtime error0/417ms13748 KiB