#18046: 讀入測資問題


eric.wu090901@gmail.com (柚柚 eric)


x=1
while x>0 :
    a,b,c=map(int,input().split())
    if a==0 and b==0 and c==0 :
        print('AND')
        print('OR')
        print('XOR')
    elif a!=0 and b==0 :
        if c==0 :
            print('AND')
       else :
            print('OR')
            print('XOR')
    elif a==0 and b!=0 :
        if c==0 :
            print('AND')
        else :
            print('OR')
            print('XOR')
    elif a!=0 and b!=0 :
        if c==0 :
            print('XOR')
        else :
            print('AND')
            print('OR')
    else :
        print('IMPOSSIBLE')

顯示NA

在其他編譯器運作是沒有問題的

請各位大大幫忙~~

#24417: Re:讀入測資問題


qqq123456 (suiyu)


 

 

加 try 和 except 就好了