1 条题解

  • 0
    @ 2024-8-12 21:39:40

    #include using namespace std;

    int main() { int x; cin >> x;

    int c = 16;
    
    if (x > 1000) {
        int b = x - 1000;
        int a = (b+ 499) / 500 * 10;
        c += a;
    }
    
    cout <<c<< endl;
    
    return 0;
    

    }

    • 1

    信息

    ID
    73
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    (无)
    递交数
    68
    已通过
    36
    上传者