文章

79

粉丝

0

获赞

483

访问

18.9k

头像
成绩的等级 题解:
P1038 中南大学机试题
发布于2026年1月31日 10:02
阅读数 144

#include<iostream>

using namespace std;

int main() {
	
	int x;
	cin >> x;
	
	if (x > 90) cout << 'A' << endl;
	else if (x >= 80) cout << 'B' << endl;
	else if (x >= 70) cout << 'C' << endl;
	else if (x >= 60) cout << 'D' << endl;
	else cout << 'E' << endl;

	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发