Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int q, f[11][11],z=0,a=1,didz=-1000001;
- cin>>q;
- for(int i=0;i<q;i++)
- {
- for(int j=0;j<q;j++)
- {
- cin>>f[i][j];
- if(j!=z && j>q-a)
- {
- if(f[i][j]>didz)
- {
- didz=f[i][j];
- }
- }
- }
- z+=1;
- a+=1;
- }
- if(didz==-1000001){cout<<"Ne"<<endl;}else{cout<<didz<<endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement