Submission #1782372


Source Code Expand

Copy
n = int(raw_input())
l = [0]*100
l[0] = 2
l[1] = 1
for i in xrange(2,100):
    l[i] = l[i-1] + l[i-2]
print l[n]

Submission Info

Submission Time
Task B - Lucas Number
User kcborys
Language Python2 (2.7.6)
Score 200
Code Size 118 Byte
Status
Exec Time 10 ms
Memory 2692 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 200 / 200 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
01.txt 10 ms 2568 KB
02.txt 10 ms 2568 KB
03.txt 10 ms 2692 KB
04.txt 10 ms 2568 KB
05.txt 10 ms 2568 KB
06.txt 10 ms 2568 KB
07.txt 10 ms 2568 KB
08.txt 10 ms 2568 KB
09.txt 10 ms 2568 KB
10.txt 10 ms 2568 KB
11.txt 10 ms 2568 KB
12.txt 10 ms 2568 KB
13.txt 10 ms 2568 KB
14.txt 10 ms 2568 KB
sample_01.txt 10 ms 2568 KB
sample_02.txt 10 ms 2568 KB