#13636: python 求救


daniel01035@gmail.com (峻瑋郭)


a = int(input())
while(a>0):
    str=input()
    new_str = str.split()
    if (int(new_str[1]) -int(new_str[0])) ==1:
        print('%s%d'% (str,int(new_str[3])+1))
    else:
        print('%s%d'% (int(new_str[3]) * (int(new_str[1]) -int(new_str[0]))) )
    a-=1
 
請問我這樣哪裏錯了
題目不是說第一行是表示有幾行數列嗎?為什麼我看別人的答案都是要一直輸入的才會對?
#13637: Re:python 求救


daniel01035@gmail.com (峻瑋郭)


沒事我知道了