#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,z;
cin>>a>>b>>c>>d;
z=a+b+c+d;
if (a>=60&&b>=60&&c>=60&&d>=60&&z>=340)
{if(z>=370) cout<<"Government-supported student";
else cout<<"Self-supported student";}
else cout<<"No pass"<<endl;
return 0;
}
某高校录取研究生的要求是,新生的每门课成绩不低于60分,总成绩不低于340分,370分以下为自费。编一程序实现输入一个学生的四门课成绩,试判断该生为该校录取的情况
最新推荐文章于 2023-12-07 00:30:57 发布