FFFFUCK

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
const int n = 3;
const int m = 3;
int K[n][m];
cout << "Enter K array: ";
for(int i = 0; i < n; i++)
for(int j = 0; j < m; j++)
{
cout << "\n["<<i<<"]["<<j<<"]: ";
cin >> K[i][j];
}
int max[m];
for(int i = 0; i < m; i++)
max[i] = K[0][i];
for(int i = 0; i < m; i++)
for(int j = 0; j < n; j++)
{
if(K[j][i] > max[i])
max[i] = K[j][i];
}
int maxint = max[0];
for(int i = 0; i < m; i++)
if(max[i] < maxint)
maxint = max[i];
cout << "Result: " << maxint;
getch();
}