36662023-03-02 10:26:14cstmToronyépítés (80 pont)python3Runtime error 36/8061ms67756 KiB
list=[0,1]
a=int(input())
for i in range(2,a+2):
    list.append(0)
    list[i]=(list[i-2]+list[i-1]*3)
print(list[a+1]%20210108)
SubtaskSumTestVerdictTimeMemory
base36/80
1Accepted0/017ms10828 KiB
2Accepted0/017ms12196 KiB
3Accepted4/417ms11428 KiB
4Accepted4/417ms11384 KiB
5Accepted5/517ms11688 KiB
6Accepted5/517ms11980 KiB
7Runtime error0/657ms67692 KiB
8Runtime error0/661ms67756 KiB
9Accepted7/717ms12312 KiB
10Accepted7/717ms12672 KiB
11Runtime error0/861ms67092 KiB
12Runtime error0/857ms66772 KiB
13Runtime error0/861ms66636 KiB
14Runtime error0/856ms66600 KiB
15Accepted2/217ms13632 KiB
16Accepted2/217ms13736 KiB