0
Halloween Candy
Is ig possibl to solve it this way, without using the ceil? https://code.sololearn.com/c0wJiFkc53ae/?ref=app
6 Answers
+ 1
# Hi, YiÄit Anıl Genç !
# This is one approach:
ch = 2/int(input()) * 100
print(int(ch + 1 if ch > int(ch) else ch))
0
Wow. Thank you sir! Hard to understand at first because of one line but yeah, that is the way i wanted to do it.
0
Hi, just ask if you have any questionsâŠ
0
I was trying to achieve the same by format or round, but really knowing the basics like you do is superior. I understood the int() conversion.
0
Hello sir
0
How are you