Advertisement
SuitNdtie

Hello world

Jun 26th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.03 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef long long int ll;
  4. string str[8]  = {"        HH    HH    EEEEEEEE    LL          LL           OOOOOO             WW     WW     OOOOOO     RRRRRRR     LL          DDDDDDD                                       "
  5.                 , "        HH    HH    EEEEEEEE    LL          LL          OOOOOOOO            WW     WW    OOOOOOOO    RRRRRRRR    LL          DDDDDDDD                                      "
  6.                 , "        HH    HH    EE          LL          LL          OO    OO            WW     WW    OO    OO    RR    RR    LL          DD    DD                                      "
  7.                 , "        HHHHHHHH    EEEEEEEE    LL          LL          OO    OO            WW     WW    OO    OO    RR    RR    LL          DD    DD                                      "
  8.                 , "        HHHHHHHH    EEEEEEEE    LL          LL          OO    OO            WW  W  WW    OO    OO    RRRRRRR     LL          DD    DD                                      "
  9.                 , "        HH    HH    EE          LL          LL          OO    OO            WW WWW WW    OO    OO    RRRRRR      LL          DD    DD                                      "
  10.                 , "        HH    HH    EEEEEEEE    LLLLLLLL    LLLLLLLL    OOOOOOOO            WWWW WWWW    OOOOOOOO    RR   RR     LLLLLLLL    DDDDDDDD                                      "
  11.                 , "        HH    HH    EEEEEEEE    LLLLLLLL    LLLLLLLL     OOOOOO             WW     WW     OOOOOO     RR    RR    LLLLLLLL    DDDDDDD                                       "
  12.                 };
  13.  
  14. int const cs = 20;
  15. int const dl = 8e7;
  16. int countt = 1e9;
  17.  
  18.  
  19.   void ClearScreen()
  20.     {
  21.     int n;
  22.     for (n = 0; n < 10; n++)
  23.       printf( "\n\n\n\n\n\n\n\n\n\n" );
  24.     }
  25.  
  26. int main()
  27. {
  28.     ll c = 0;
  29.    
  30.     do{
  31.         for(int i = 0 ; i < 8 ; i ++){
  32.            
  33.             cout << str[i].substr(c,171 - c) + str[i].substr(0,c) << endl;
  34.            
  35.         }
  36.        
  37.         //delay
  38.         for(int j = 0 ; j <= dl ; j ++){}
  39.    
  40.         //clear screen
  41.         for(int j = 0 ; j < cs ; j ++){
  42.             cout << endl;
  43.         }
  44.        
  45.         c += 10;
  46.         c %= 171;
  47.     }while(--countt);
  48.    
  49.     return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement