37252023-03-02 14:08:15DohajovDanielToronyépítés (80 pont)python3Runtime error 36/8063ms67940 KiB
m=int(input())
dbL=[3,10]
for i in range(2,m):
    dbL.append((dbL[i-1]*3+dbL[i-2]))
print(dbL[m-1]%20210108)
SubtaskSumTestVerdictTimeMemory
base36/80
1Accepted0/017ms10848 KiB
2Accepted0/017ms12228 KiB
3Accepted4/417ms11556 KiB
4Accepted4/417ms11476 KiB
5Accepted5/517ms11804 KiB
6Accepted5/517ms12280 KiB
7Runtime error0/656ms67940 KiB
8Runtime error0/654ms67680 KiB
9Accepted7/717ms12656 KiB
10Accepted7/717ms12672 KiB
11Runtime error0/859ms67128 KiB
12Runtime error0/856ms66952 KiB
13Runtime error0/857ms67012 KiB
14Runtime error0/863ms66840 KiB
15Accepted2/217ms13328 KiB
16Accepted2/217ms13296 KiB