【文件属性】:
文件名称:NH教师C++小组测试第六题
文件大小:70KB
文件格式:JPEG
更新时间:2022-05-12 19:59:21
dsd
#include
using namespace std;
int f, m, n, mid, goal;
int kind[1010][4];
int cnt[1010];
int main()
{
cin >> f >> m >> goal;
for (int x, i = 1; i <= f; i++)
{
for (int j = 1; j <= m; j++)
{
cin >> x;
if (x < goal)
kind[i][1]++;
else
if (x == goal)
kind[i][2]++;
else
kind[i][3]++;
}
}
n = f*m;