全红,球球大佬康康
查看原帖
全红,球球大佬康康
1199438
drinkinclothes楼主2023/11/27 19:55
#include <iostream>
#include<string.h>
using namespace std;
struct student
{
    string hao;
    int ji;
    int su;
    int s=ji*7+su*3;
};
void excellent(student k)
{
    if (k.s >= 800 && k.ji + k.su > 140)
        cout << "Excellent" << endl;
    else cout << "Not excellent" << endl;
}
int main()
{
    int n;
    cin >> n;
    student* p = new student[n];
    for(int i=0;i<n;i++)
    {
        cin >> p[i].hao >> p[i].ji >> p[i].su;
    }
    for (int i = 0; i < n; i++)
    {
        excellent(p[i]);
    }delete[]p;
}
2023/11/27 19:55
加载中...