#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a[100][100]; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(i==j) a[i][j]=1; else a[i][j]=0; } } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cout<<setw(3)<<a[i][j]; } } } /************************************************************** Problem: 1190 User: lidongcheng Language: C++ Result: Wrong Answer ****************************************************************/