----------/成绩统计/----------
#include <bits/stdc++.h>
using namespace std;
//记录及格人数,优秀人数
int cnt1, cnt2;
int main()
{
int n = 0;
cin >> n;
for (int i = 0; i < n; i++)
{
int x = 0;
cin >> x;
if (x >= 60) cnt1++;
if (x >= 85) cnt2++;
}
//round(x)四舍五入取整
cout << (int)round((double)cnt1 / n * 100) << '%' << endl;
cout << (int)round((double)cnt2 / n * 100) << '%' << endl;
}
不错