1390L.cpp 383 B

123456789101112131415161718192021
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int h, w, z = 0;
  5. while (cin >> h >> w) {
  6. if (h == 0 and w == 0)
  7. break;
  8. if (z++)
  9. cout << endl;
  10. for (int x = 0; x < h; x++) {
  11. for (int y = 0; y < w; y++) {
  12. cout << "#";
  13. }
  14. cout << endl;
  15. }
  16. }
  17. return 0;
  18. }