11 条题解

  • 9
    @ 6 年前

    仅此一行

    print(max(350,25*(int(input()))-100))
    
  • 2
    @ 6 年前

    北京市第三区交通委提醒您:
    代码千万条
    细节第一条
    冒号不缩进
    测评两行泪

    • @ 6 年前

      然而甚至连idle都自带缩进...

  • 1
    @ 4 年前
    #include <iostream>
    using namespace std;
    int main()
    {
        int s;cin>>s;
        int fy=350;
        if(s>18)
            fy+=25*(s-18);
        cout<<fy;
        return 0;
    }
    
  • 1
    @ 6 年前

    a=int(input())
    if a<=18:
    b=350
    else:
    b=a*25-100
    print(b)

  • 1

    #include <iostream>
    #include <math.h>
    #include <iomanip>

    using namespace std;

    int main()
    {
    int kilometre;
    int price = 350;
    cin >> kilometre;
    if(kilometre > 18)
    {
    price += (kilometre - 18) * 25;
    }
    cout << price;
    return 0;
    }

  • 1
    @ 6 年前

    #python3
    a=int(input())
    if a<=18:
    b=350
    else:
    b=a*25-100
    print(b)

  • 0
    @ 3 年前

    python / pytnon 3

    n=int(input(""))
    if n<=18:
    print("350")
    else:
    a=(n-18)*25+350
    print(a)

  • 0
    @ 5 年前

    import math
    s=int(input())
    if s<=18:
    p=350
    else:
    p=350+(s-18)*25
    print(p)

  • 0
    @ 5 年前
    import math
    s=int(input())
    e=s-18
    if s<=18:
        print("350")
    else:
        m=350+(e*25)
        print(m)
    
  • 0
    @ 6 年前

    s=int(input())
    m=s-18
    if m<=0:
    p=350
    else:
    p=350+m*25
    print(p)

  • 0
    @ 6 年前

    import math
    s=int(input())
    if s<=18:
    p=350
    else:
    m=s-18
    n=m*25
    p=350+n
    print(p)

  • 1

信息

难度
6
分类
(无)
标签
(无)
递交数
5432
已通过
1273
通过率
23%
上传者