Advertisement
Robert_JR

T. Awesome Rectangle

Nov 28th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <algorithm>
  4. #include <cmath>
  5. #include <string>
  6. #include <cstdlib>
  7. #define DEBUGG freopen("f:\\in.txt", "rt", stdin);freopen("f:\\out.txt", "wt", stdout);
  8. #define FOR(n) for(int i = 0; i < n; i++)
  9. #define ll long long int
  10. #define TESTCASE int t;scanf("%d", &t);for(int j = 0; j < t; j++)
  11. #define PF printf
  12. #define SF scanf
  13. #define EP 0.000000001
  14. using namespace std;
  15.  
  16. int main()
  17. {
  18.     int n;
  19.     TESTCASE
  20.     {
  21.         cin >> n;
  22.  
  23.         FOR(n)
  24.         {
  25.             for(int k = 0; k < 9; k++) cout << '*';
  26.             if(i != n-1) cout << ' ';
  27.         }
  28.         cout << endl;
  29.         FOR(n)
  30.         {
  31.             cout << '*';
  32.             for(int k = 0; k < 7; k++) cout << ' ';
  33.             cout << '*';
  34.             if(i != n-1) cout << ' ';
  35.         }
  36.         cout << endl;
  37.         FOR(n)
  38.         {
  39.             cout << '*';
  40.             for(int k = 0; k < 7; k++) cout << ' ';
  41.             cout << '*';
  42.             if(i != n-1) cout << ' ';
  43.         }
  44.         cout << endl;
  45.         FOR(n)
  46.         {
  47.             for(int k = 0; k < 9; k++) cout << '*';
  48.             if(i != n-1) cout << ' ';
  49.         }
  50.         cout << endl;
  51.  
  52.     }
  53.  
  54.  
  55.     return 0;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement