题目说明:
题目解读:
38分以下不变,以上每5分为一个等级,进行四舍五入
示例代码:
// GradingStudents.cpp: 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <windows.h>
#include <iostream>
using namespace std;
//by zhaocl
int main()
{
int n;
cin >> n;
int grates;
while( n-- )
{
cin >> grates;
if( grates >= 38 )
{
if( grates % 5 >= 3 )
grates += ( 5 - grates % 5 );
}
cout << grates << endl;
}
system( "pause" );
return 0;
}