文章

37

粉丝

1

获赞

81

访问

7.2k

头像
成绩的等级 题解:
P1038 中南大学机试题
发布于2026年3月18日 13:45
阅读数 171

#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm> 
#include<string>
#include<cstring>
using namespace std;
int main()
{
    int n;
    cin >> n;
    if (n >= 90)cout << 'A' << endl;
    else if (n >= 80) cout << 'B' << endl;
    else if (n >= 70) cout << 'C' << endl;
    else if (n >= 60) cout << 'D' << endl;
    else cout << 'E' << endl;
    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发