#32325: 為何是WA(line:5)??求解


melodyshih0824 (超萌小辣椒)

學校 : 不指定學校
編號 : 204467
來源 : [218.166.54.147]
最後登入時間 :
2023-06-27 19:20:58

while True:
    try:
        n,k=map(int,input().split())
        if n!=0 and k==0:
            print("Impossib1e!")
        elif n==0 and k==0:
            print("Ok!")
        else:
            if n>0 and k>0 and n%k==0:
               print("Ok!")
            else:
               print("Impossib1e!")
    except:
        break

#32326: Re: 為何是WA(line:5)??求解


linlincaleb@gmail.com (臨末之頌)

學校 : 新北市立板橋高級中學
編號 : 132772
來源 : [203.64.161.123]
最後登入時間 :
2024-07-29 10:02:49

while True:
    try:
        n,k=map(int,input().split())
        if n!=0 and k==0:
            print("Impossib1e!")
        elif n==0 and k==0:
            print("Ok!")
        else:
            if n>0 and k>0 and n%k==0:
               print("Ok!")
            else:
               print("Impossib1e!")
    except:
        break

n=0 k!=0