#32540: 試了好多次,能幫我看下嗎QAQ(python)


JimTsao (LIANG)


while True:

 try:

  a,b=map(int,input().split())

  if (a%b==0 and b!=0) or (a==0 and b==0):

   print("Ok!")

  else:

   print("Impossib1e!")

 except:

  break

#32586: Re: 試了好多次,能幫我看下嗎QAQ(python)


cges30901 (cges30901)


 

  if (a%b==0 and b!=0) or (a==0 and b==0):

 


a%b==0和b!=0交換順序,你這樣寫如果b是0會出現除以0的錯誤