36652023-03-02 10:25:48cstmToronyépítés (80 pont)python3Runtime error 36/8057ms67948 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/017ms10876 KiB
2Accepted0/017ms12220 KiB
3Accepted4/417ms11348 KiB
4Accepted4/417ms11668 KiB
5Accepted5/517ms11876 KiB
6Accepted5/517ms12132 KiB
7Runtime error0/656ms67948 KiB
8Runtime error0/657ms67428 KiB
9Accepted7/717ms12440 KiB
10Accepted7/717ms12380 KiB
11Runtime error0/857ms67488 KiB
12Runtime error0/857ms67640 KiB
13Runtime error0/856ms67600 KiB
14Runtime error0/857ms67520 KiB
15Accepted2/217ms12696 KiB
16Accepted2/217ms12764 KiB