#33115: 不是說python 直接乘就過了,它怎麼一直WA???


melodyshih0824 (超萌小辣椒)


while True:
    try:
        x = eval(input())
        y = eval(input())
        s=x*y
        print(s)
    except EOFError:break

#33134: Re: 不是說python 直接乘就過了,它怎麼一直WA???


cges30901 (cges30901)


while True:
    try:
        x = eval(input())
        y = eval(input())
        s=x*y
        print(s)
    except EOFError:break


eval改成int就可以過了

#33173: Re: 不是說python 直接乘就過了,它怎麼一直WA???


melodyshih0824 (超萌小辣椒)


while True:
    try:
        x = eval(input())
        y = eval(input())
        s=x*y
        print(s)
    except EOFError:break


eval改成int就可以過了

請問為何不能使用eval??

#33174: Re: 不是說python 直接乘就過了,它怎麼一直WA???


asnewchien@gmail.com (david)


看看你的錯誤訊息,

測試 eval('012')