fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7.  
  8. long int a[n][n]{};
  9. for(int i = 0; i < n; i++){
  10. for(int j = 0; j < n; j++){
  11. int k;
  12. cin >> k
  13. if(k==0)
  14. for( int i = )
  15. }
  16. }
  17.  
  18. for(int i = 0; i < n; i++){
  19. for(int j = 0; j < n; j++){
  20. cout << a[i][j];
  21. }
  22. cout << endl;
  23. }
  24. }
Success #stdin #stdout 0.01s 5456KB
stdin
20
stdout
22222222222222222220
22222222222222222201
22222222222222222011
22222222222222220111
22222222222222201111
22222222222222011111
22222222222220111111
22222222222201111111
22222222222011111111
22222222220111111111
22222222201111111111
22222222011111111111
22222220111111111111
22222201111111111111
22222011111111111111
22220111111111111111
22201111111111111111
22011111111111111111
20111111111111111111
01111111111111111111