eolymp
published at 3/19/22, 10:29:44 am

//help me i get 35 precent from this solition

include<bits/stdc++.h>

using namespace std; int main() { long n; cin>>n; long a[n][n]; for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { cin>>a[i][j];

}

}

if(a[0][0]==0&&0==a[n-1][0]&&0==a[n-1][n-1]&&0==a[n-1][0]) { cout<<"YES"; }else cout<<"NO"; }