3 条题解

  • 1
    @ 2023-09-23 17:12:46

    这道题有向下取整的必要???
    这不就是加了分支结构的helloworld吗?

    a=input()
    if int(a)>2017 :
        print("1 80")
    elif int(a)>2007 :
        print("2 400")
    else :
        print("3 800")
    
  • 1
    @ 2020-05-31 16:25:57

    import math
    y=int(input())
    if y>2017:
    p=800*0.1
    f=math.floor(p)
    print(1,f)
    elif (2008<y<=2017):
    p=800*0.5
    f=math.floor(p)
    print(2,f)
    else:
    p=800
    print(3,p)

  • 0
    @ 2020-05-31 16:26:14
    import math
    y=int(input())
    if y>2017:
        p=800*0.1
        f=math.floor(p)
        print(1,f)
    elif (2008<y<=2017):
        p=800*0.5
        f=math.floor(p)
        print(2,f)
    else:
        p=800
        print(3,p)
    
  • 1

信息

ID
1012
难度
6
分类
(无)
标签
(无)
递交数
403
已通过
95
通过率
24%
上传者