#include using namespace std; int main() { int N, M, B; ifstream inp; inp.open("subsetselection.in"); inp >> N >> M >> B; int **table = new int*[N]; for (int i = 0; i < N; i++) { table[i] = new int[M]; for (int j = 0; j < M; j++) { inp >> table[i][j]; } } inp.close(); int best = 0; int Row = 0; for (int i = 1; i < N; i++) { int thatRow = 0; for (int j = 0; j < M ; j++) { thatRow += (table[0][j] + table[i][j])*(table[0][j] + table[i][j]); } if (thatRow > best) { best = thatRow; Row = i; } } ofstream out; out.open("subsetselection.out"); out << 2 << endl; out << 1 << endl; out << Row+1 << endl; out.close(); return 0;B }