fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N,M;
  6. char S;
  7.  
  8. cin >> N,M;
  9.  
  10. for(int i=0; i<N; i++){
  11. for(int j=0; j<N; j++){
  12. cin >> S;
  13. cout << S;
  14. }
  15. cout << endl;
  16. }
  17. // your code goes here
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5324KB
stdin
3 2
...
###
#.#
stdout
2..
.##
##.