#include #include #include using namespace std; int main() { int N,M,B; ifstream inp; inp.open("subsetselection.in"); inp>>N>>M>>B; int** arr = new int*[N]; for (int i=0; i>arr[i][j]; } } inp.close(); ofstream out; out.open("subsetselection.out"); if (N==1) { out<<1<max) { max = current; for (int a=0;a4.5) { break; } } if ((float)clock()/CLOCKS_PER_SEC>4.5) { break; } } if (N>3) { srand(10); int* activeRows = new int[N]; for (int r=0;r<100000;r++) { for (int j=0;jmax) { max = current; totalRowsMax = totalRows; for (int a=0;a4.94) { break; } } if ((float)clock()/CLOCKS_PER_SEC>4.94) { break; } } } for (int j=0;jmax) { max = current; totalRowsMax++; activeRowsMax[i] = 1; for (int j=0;j