fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int count=0;
  7. int input[25][25]={0,};
  8. bool flag[25][25]={false};
  9.  
  10. cin >> count;
  11.  
  12. for(int i=0;i<count;i++)
  13. {
  14. for(int j=0;j<count;j++)
  15. {
  16. cin>>input[i][j];
  17. }
  18. }
  19.  
  20. for(int i=0;i<count;i++)
  21. {
  22. for(int j=0;j<count;j++)
  23. {
  24. if(!flag[i][j])
  25. cout << input[i][j];
  26. }
  27. cout << "" << endl;
  28. }
  29.  
  30.  
  31. return 0;
  32. }
Success #stdin #stdout 0s 15240KB
stdin
7
0110100
0110101
1110101
0000111
0100000
0111110
0111000
stdout
1101001101011110101111100000111110111000
0000000
0000000
0000000
0000000
0000000
0000000