1 条题解

  • 1
    @ 2025-4-19 21:54:51
    #include <bits/stdc++.h>
    #include <cstdio>
    #define endl '\n'
    
    using namespace std;
    
    typedef long long ll;
    
    struct stu {
        string name;
        int year;
        int noip_score;
    }a[20];
    
    int n;
    
    int main() {
        cin >> n;
        for (int i = 1; i <= n; i++) {
            cin >> a[i].name >> a[i].year >> a[i].noip_score;
        }
        for (int i = 1; i <= n; i++) {
            cout << a[i].name << " ";
            cout << a[i].year + 1 << " ";
            cout << ((a[i].noip_score * 1.2 < 600) ? a[i].noip_score * 1.2 : 600);
            cout << endl;
        }
        return 0;
    }
    
    • 1

    信息

    ID
    114
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    (无)
    递交数
    646
    已通过
    12
    上传者