Teaser - 6

7 replies [Last post]
bOtskOOl
Offline
Last seen: 9 years 49 weeks ago
Joined: 2009-02-21
bOt Points: 3500

The following program has a very interesting output.

 

india

 

Your task is to get an upside down output (it may or may not be laterally inverted).

 

You cannot add any new statements or delete old ones.

 

#include<stdio.h>

int main()

{

int a,b,c;


for (b=c=10;a="-bOtskOOl:Hello Folks,\

TFy!QJu ROo TNn(ROo)SLq SLq ULo+\

UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\

NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\

HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\

T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\

Hq!WFs XDt!YCt!ZAu!" [b+++12]; )

for(; a-- >64; )

putchar ( ++c=='Z' ? c = c/'\t':33^b&1);


return 0;

 

30 bOt points to be won.

This will also work in our Online Compiler. So you try this out here itself!

tanuj singhal (not verified)
inverted image is

#include
#include

main()

{

int a,b,c;

for (b=c=10;a="-bOtskOOl :Hello Folks,\
TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\
NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\
HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\
T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\
Hq!WFs XDt!YCt!ZAu!" [b+++12]; )

for(; a-- >64; )

putchar ( ++c=='Z' ? c = c/'\t':33^b&1);

return 0;

}

nitesh
Offline
Last seen: 9 years 29 weeks ago
Joined: 2009-03-26
bOt Points: 370
@tanuj

UPDATED: Your solution is incorrect.  

bOtskOOl
Offline
Last seen: 9 years 49 weeks ago
Joined: 2009-02-21
bOt Points: 3500
Re: inverted image is

Below is a sample output of your code. This screenshot has been taken from our Online Compiler. As you can see the image is not upside down hence your solution is not correct.

Teaser - 6 Sample Output of Code 

Keep trying. 

All the best.

You can directly test your code by using our Online Compiler. Try it out now!

sunny
Offline
Last seen: 10 years 13 hours ago
Joined: 2009-06-23
bOt Points: 58
nice work bro....... ;)

                 !!!!!!                                                     
                    !!!!!!!!!!                                                 
                     !!!!!!!!!!!!!!!                                           
                       !!!!!!!!!!!!!!                                          
                     !!!!!!!!!!!!!!!                                           
                      !!!!!!!!!!!!                                             
                      !!!!!!!!!!!!                                             
                        !!!!!!!!!!!!                                           
                        !!!!!!!!                                               
                        !!!!!!!!!!                                             
                       !!!!!!!!!!!!!!                                          
                     !!!!!!!!!!!!!!!!                                          
                    !!!!!!!!!!!!!!!!                                  !!!!!    
                  !!!!!!!!!!!!!!!!!!!                               !!!!!!!!!! 
                 !!!!!!!!!!!!!!!!!!!!!!!                 !         !!!!!!!!!!  
            !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!              !!     !!!!!!!!!!!!    
           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!        !!      !!!!!!!!       
            !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!      
             !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!       
              !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!       
       !!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!        !!!!!!        
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!      !!!!!         
          !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!        !!!          
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!        !          
          !!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                       
           !!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                         
                  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                          
                 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                           
                  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                               
                  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                               
                  !!!!!!!!!!!!!!!!!!!!!!!!!!!!                                 
                  !!!!!!!!!!!!!!!!!!!!!!!!!!                                   
                  !!!!!!!!!!!!!!!!!!!!!!!!!                                    
                   !!!!!!!!!!!!!!!!!!!!!!!!                                    
                    !!!!!!!!!!!!!!!!!!!!                                       
                    !!!!!!!!!!!!!!!!!!!                                        
                     !!!!!!!!!!!!!!!!                                          
                      !!!!!!!!!!!!!!!!                                         
                      !!!!!!!!!!!!!!!                                          
                       !!!!!!!!!!!!!!                                          
                        !!!!!!!!!!!!                                           
                        !!!!!!!!!!!!                                           
                        !!!!!!!!!!!!                                           
                          !!!!!!!!                                             
                          !!!!!!                                               
                           !!!!                                                
                            !!!                                                
                             !                                                 
  
 

cardcaptor sakura
Offline
Last seen: 10 years 34 weeks ago
Joined: 2009-06-23
bOt Points: 66
#include<stdio.h> int

#include<stdio.h>

int main()

{

int a,b,c;

 

for (b=c=10;a="-bOtskOOl:Hello Folks,\

TFy!QJu ROo TNn(ROo)SLq SLq ULo+\

UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\

NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\

HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\

T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\

Hq!WFs XDt!YCt!ZAu!" [b+++12]; )

for(; a-- >64; )

putchar ( ++c=='Z' ? c = 33^b:c/'t\t'&1);

 

return 0;

}  

nitesh
Offline
Last seen: 9 years 29 weeks ago
Joined: 2009-03-26
bOt Points: 370
@cardcaptor

Thats incorrect. The output is really wierd 

Guest (not verified)
feasible solution

#include

int main()

{

int a,b,c;

for (b=c=187;(a="-bOtskOOl:Hello Folks,\

TFy!QJu ROo TNn(ROo)SLq SLq ULo+\

UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\

NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\

HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\

T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\

Hq!WFs XDt!YCt!ZAu!" [b--+12])!=','; )

for(; a-- >64; )

putchar ( ++c=='Z' ? c = c/'\t':33^b&1);

return 0;

}