37232023-03-02 13:57:43DohajovDanielToronyépítés (80 pont)python3Runtime error 36/8074ms68080 KiB
be=int(input())
mL=be*[0]+1*[0]; mL[0]=3; mL[1]=10
for i in range(3,be+2):
    mL[i-1]=3*mL[i-2]+1*mL[i-3]
print(mL[be-1]%20210108)
SubtaskSumTestVerdictTimeMemory
base36/80
1Accepted0/017ms10864 KiB
2Accepted0/018ms12192 KiB
3Accepted4/417ms11360 KiB
4Accepted4/417ms12040 KiB
5Accepted5/517ms11904 KiB
6Accepted5/517ms12012 KiB
7Runtime error0/674ms68080 KiB
8Runtime error0/671ms67856 KiB
9Accepted7/717ms12596 KiB
10Accepted7/717ms12728 KiB
11Runtime error0/871ms67416 KiB
12Runtime error0/865ms67016 KiB
13Runtime error0/864ms67044 KiB
14Runtime error0/870ms66948 KiB
15Accepted2/217ms13164 KiB
16Accepted2/217ms13112 KiB