有谁知道这道题用Python怎么写吗?

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

52blyl @ 2023-12-12 17:21:38


by luoguandy @ 2023-12-12 17:48:49

inp=int(input())
if inp==1:
    print('I love Luogu!')
if inp==2:
    print(6,4)
if inp==3:
    print(3)
    print(12)
    print(2)
if inp==4:
    print(166.667)
if inp==5:
    print(15)
if inp==6:
    print(10.8167)
if inp==7:
    print(110)
    print(90)
    print(0)
if inp==8:
    print(31.4159)
    print(78.5398)
    print(523.599)
if inp==9:
    print(22)
if inp==10:
    print(9)
if inp==11:
    print(33.3333)
if inp==12:
    print(13)
    print('R')
if inp==13:
    print(16)
if inp==14:
    print(50)

|