fork download
  1. #include <iostream>
  2.  
  3. #include <stdlib.h>
  4.  
  5. using namespace std;
  6.  
  7. int main(){
  8.  
  9. int i,j;
  10.  
  11. cout<< endl;
  12. cout<<endl;
  13. cout<<endl;
  14.  
  15. for(i=1;i<=22;i++){
  16.  
  17. for(j=1;j<=60;j++){
  18.  
  19. if(i==1) if(((j>=14)&&(j<=23))||((j>=39)&&(j<=48))) cout<<"*"; else cout<<" ";
  20.  
  21. else if(i==2) if(((j>=11)&&(j<=26))||((j>=36)&&(j<=51))) cout<<"*"; else cout<<" ";
  22.  
  23. else if(i==3) if(((j>=9)&&(j<=28))||((j>=34)&&(j<=53))) cout<<"*"; else cout<<" ";
  24.  
  25. else if(i==4) if(((j>=7)&&(j<=30))||((j>=32)&&(j<=55))) cout<<"*"; else cout<<" ";
  26.  
  27. else if((i>=5)&&(i<=8)) if((j>=5)&&(j<=57)) cout<<"*"; else cout<<" ";
  28.  
  29. else if(i==9) if((j>=7)&&(j<=55)) cout<<"*"; else cout<<" ";
  30.  
  31. else if(i==10) if((j>=9)&&(j<=53)) cout<<"*"; else cout<<" ";
  32.  
  33. else if(i==11) if((j>=11)&&(j<=51)) cout<<"*"; else cout<<" ";
  34.  
  35. else if(i==12) if((j>=13)&&(j<=49)) cout<<"*"; else cout<<" ";
  36.  
  37. else if(i==13) if((j>=15)&&(j<=47)) cout<<"*"; else cout<<" ";
  38.  
  39. else if(i==14) if((j>=17)&&(j<=45)) cout<<"*"; else cout<<" ";
  40.  
  41. else if(i==15) if((j>=19)&&(j<=43)) cout<<"*"; else cout<<" ";
  42.  
  43. else if(i==16) if((j>=21)&&(j<=41)) cout<<"*"; else cout<<" ";
  44.  
  45. else if(i==17) if((j>=23)&&(j<=39)) cout<<"*"; else cout<<" ";
  46.  
  47. else if(i==18) if((j>=25)&&(j<=37)) cout<<"*"; else cout<<" ";
  48.  
  49. else if(i==19) if((j>=27)&&(j<=35)) cout<<"*"; else cout<<" ";
  50.  
  51. else if(i==20) if((j>=29)&&(j<=33)) cout<<"*"; else cout<<" ";
  52.  
  53. else if(i==21) if((j>=30)&&(j<=32)) cout<<"*"; else cout<<" ";
  54.  
  55. else if(i==22) if(j==31) cout<<"*"; else cout<<" ";
  56.  
  57. }
  58.  
  59. cout<<"\n";
  60.  
  61. }
  62.  
  63. return 0;
  64.  
  65. }
Success #stdin #stdout 0.01s 5320KB
stdin
45
stdout


             **********               **********            
          ****************         ****************         
        ********************     ********************       
      ************************ ************************     
    *****************************************************   
    *****************************************************   
    *****************************************************   
    *****************************************************   
      *************************************************     
        *********************************************       
          *****************************************         
            *************************************           
              *********************************             
                *****************************               
                  *************************                 
                    *********************                   
                      *****************                     
                        *************                       
                          *********                         
                            *****                           
                             ***                            
                              *