36492023-03-01 18:20:20DohajovDanielToronyépítés (80 pont)python3Time limit exceeded 42/80201ms28412 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)%20210108)
print(dbL[m])
SubtaskSumTestVerdictTimeMemory
base42/80
1Accepted0/017ms11084 KiB
2Accepted0/018ms11212 KiB
3Accepted4/417ms11420 KiB
4Accepted4/417ms11324 KiB
5Accepted5/517ms11612 KiB
6Accepted5/517ms11988 KiB
7Time limit exceeded0/6201ms20396 KiB
8Accepted6/675ms22052 KiB
9Accepted7/717ms12116 KiB
10Accepted7/717ms12448 KiB
11Time limit exceeded0/8114ms28412 KiB
12Time limit exceeded0/8153ms16820 KiB
13Time limit exceeded0/8170ms18472 KiB
14Time limit exceeded0/8142ms16012 KiB
15Accepted2/217ms12948 KiB
16Accepted2/217ms12840 KiB