思路:水...
#include<bits/stdc++.h>
using namespace std;
#define LL long long
#define Len 20005
int n,t,a,cnt,i;
int main()
{
scanf("%d",&t);
while (t--)
{
scanf("%d",&n);
cnt = 0;
while(n--)
{
scanf("%d",&a);
if(a>6000)
cnt++;
}
printf("%d\n",cnt);
}
return 0;
}
Description
There is a popular multiplayer online battle arena game called Demacia of the Ancients. There are lots of professional teams playing this game. A team will be approved as Level K if there are exact K team members whose match
making ranking (MMR) is strictly greater than 6000.
You are given a list of teams. Please calculate the level of each team.
Output
For each test case, output the level of the given team.