Skip to content

Commit b8f5a99

Browse files
authored
Update Day_16.md
1 parent e801eb0 commit b8f5a99

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Status/Day_16.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ def f(n):
5959

6060
n = int(input())
6161
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+
6273
```
6374

6475
---
@@ -126,6 +137,17 @@ n = int(input())
126137
print(f(n))
127138
```
128139

140+
---
141+
```python
142+
143+
'''Solution by: NikolayEm
144+
'''
145+
146+
n = int(input())
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+
```
129151
---
130152

131153
# Question 62

0 commit comments

Comments
 (0)