Skip to content

Commit 659c4fd

Browse files
authored
Update Day 2.md
1 parent b623a2f commit 659c4fd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Status/Day 2.md

+15
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,21 @@ mylist = input().split(',')
227227
print(*(round(sqrt(2*C*int(D)/H)) for D in mylist), sep=",")
228228
```
229229
---
230+
```python
231+
232+
'''Solution by: saxenaharsh24
233+
'''
234+
235+
my_list = [int(x) for x in input('').split(',')]
236+
C, H, x = 50, 30, []
237+
238+
for D in my_list:
239+
Q = ((2*C*D)/H)**(1/2)
240+
x.append(round(Q))
241+
242+
print(','.join(map(str, x)))
243+
```
244+
---
230245

231246
# Question 7
232247

0 commit comments

Comments
 (0)