We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e801eb0 commit b8f5a99Copy full SHA for b8f5a99
Status/Day_16.md
@@ -59,6 +59,17 @@ def f(n):
59
60
n = int(input())
61
print(f(n))
62
+```
63
+---
64
+```python
65
+
66
+'''Solution by: NikolayEm
67
+'''
68
69
+n = int(input())
70
+f = lambda x: f(x-1)+100 if x > 0 else 0
71
+print(f(n))
72
73
```
74
75
---
@@ -126,6 +137,17 @@ n = int(input())
126
137
127
138
128
139
140
141
142
143
144
145
146
147
+f = lambda x: 0 if x == 0 else 1 if x == 1 else f(x-1)+f(x-2)
148
+print(','.join([str(f(x)) for x in range(0, n+1)]))
149
150
129
151
130
152
131
153
# Question 62
0 commit comments