Ответы на вопрос:
#include <iostream>
#include <vector>
using namespace std;
signed main() {
int n,m,A;
cin >> n >> m >> A;
vector<vector<double>> a(n,vector<double>(m));
for(int i = 0; i < n; i++)
for(int j = 0; j < m; j++)
cin >> a[i][j];
vector<double> b(n,1);
vector<bool> ok(n,false);
for(int i = 0; i < m; i++)
for(int j = 0; j < n; j++)
if(a[j][i] < A){
b[i] *= a[j][i];
ok[i] = true;
}
for(int i = 0; i < b.size(); i++){
if(!ok[i]) b[i] = 0;
cout << b[i] << " ";
}
}
Популярно: Информатика
-
Сильнолол13.09.2020 06:07
-
Аnюtоchкa31.05.2020 00:02
-
123455567612.09.2022 10:53
-
anisova34225.10.2020 17:34
-
MariaStredinina04.05.2021 17:21
-
polyakovred12.12.2020 15:51
-
9955Х05.01.2022 22:12
-
Анастасия439004502.07.2020 03:33
-
negatiff9505.01.2020 17:58
-
prosto529728.11.2020 17:20