Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n, m, k, t;
- cin >> n >> m >> k >> t;
- int mx = -1, x = 1, y = 1;
- for(int i = 1; i <= n; i++)
- {
- for(int j = 1; j <= m; j++)
- {
- int a;
- cin >> a;
- if(mx < a)
- mx = a, x = i, y = j;
- }
- }
- cout << mx << "\n" << x << " " << y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement