1 条题解

  • 2
    @ 2026-5-30 15:34:03
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
        int weight;
        char urgent;
        cin >> weight >> urgent;  
        int total = 8;  
        if (weight > 1000) {
            int over = weight - 1000;
            int count = (over + 499) / 500; 
            total += count * 4;
        }
        if (urgent == 'y') {
            total += 5;
        }
    
        cout << total << endl;
        return 0;
    }
    
    
    • @ 2026-5-31 11:05:32

      每个题解都有你,而且只有你的对诶【感动】【鲜花】【鲜花】【鲜花】

  • 1

信息

ID
30942
时间
1000ms
内存
256MiB
难度
7
标签
(无)
递交数
27
已通过
7
上传者