Commit 150c7468 by BellCodeEditor

auto save

parent c461bf7a
Showing with 24 additions and 0 deletions
n=int(input())
a=input()
a=a.split(",")
x=int(a[1])/int(a[0])
for i in range(n-1):
b=input()
b=b.split(",")
y=int(b[1])/int(b[0])
if x-y > 0.05:
print("worse")
elif y-x > 0.05:
print("better")
else:
print("same")
\ No newline at end of file
n=input()
a=n.split(' ')
N=int(a[0])
K=int(a[1])
for M in range(1,21):
if N*M >= 200*(((100+K)/100)**(M-1)):
print(M)
exit()
print('Impossible')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment