python求助

P2433 【深基1-2】小学数学 N 合一

zbz141592 @ 2024-03-26 20:31:15

为什么我的6、8、11题一直WA


T =int(input())
if T==1:
    print('I love Luogu!')
elif T==2:
    print('6 4')
elif T==3:
    print('3\n12\n2')
elif T==4:
    print(f'{500/3:.3f}')
elif T==5:
    print(15)
elif T==6:
    print(sqrt(6*6+9*9))
elif T==7:
    print('110\n90\n0')
elif T==8:
    print(int(2*5*3.141593))
    print(int(3.141592*5*5))
    print(int(4/3*3.141593*5*5*5))
elif T==9:
    print(22)
elif T==10:
    print(9)
elif T==11:
    print(1.0*100/3)
elif T==12:
    print('13\nR')
elif T==13:
    print(int(pow(4/3*3.141593*(4*4*4+10*10*10),1.0*1/3)))
else:
    print(50)```

by Flymount63 @ 2024-04-15 23:53:26

用sqrt 要improt math 用的花要math.sqrt


by quyunqi @ 2024-06-01 09:09:03

fk you


|