36552023-03-01 19:05:55DohajovDanielToronyépítés (80 pont)python3Time limit exceeded 42/80201ms28652 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/017ms11028 KiB
2Accepted0/017ms11588 KiB
3Accepted4/417ms11400 KiB
4Accepted4/417ms11600 KiB
5Accepted5/517ms11868 KiB
6Accepted5/517ms11876 KiB
7Time limit exceeded0/6201ms20148 KiB
8Accepted6/675ms22068 KiB
9Accepted7/717ms12488 KiB
10Accepted7/717ms12412 KiB
11Time limit exceeded0/8114ms28652 KiB
12Time limit exceeded0/8165ms18524 KiB
13Time limit exceeded0/8170ms18840 KiB
14Time limit exceeded0/8143ms16712 KiB
15Accepted2/217ms13100 KiB
16Accepted2/217ms13192 KiB