teloon
4/18/2014 - 7:43 AM

Print China map

Print China map

/*
 * Magic code to print china map.
 * The original idea is from International Obfuscated C Code test, check more here.
 * http://stackoverflow.com/questions/3533348/how-does-this-code-generate-the-map-of-india
 */
#include <stdio.h>
int main(){int a,b,c; for (b = c = 10; (a = 
 	"-FIGURE?,China *CJ Hello Folks,\
 	b&M\"D(G*>/#\";,B1:0=12<924;554D\
 	*76`<W#!?UEZ>YCWEWFTJOP$%CXAX@Z?\
 	\\#(/&!e)s z#F"[b+++21]); )
       for(; a-- >32 ; ) putchar ( ++c=='d' ? c = c/10:32|(b&1?0:10)); return 0; }
       
/*
                                                                  ******
                           **                                    ********
                      **********                              ***************   **
                   ************                                  *****************
                  ****************                             *****************
        ****************************                         ******************
         ***************************                     *********************
        ************************************          ***********************
         ****************************************************************
           *******************************************************   *
           *****************************************************
           **********************************************************
         *********************************************************
           *******************************************************
             *******************************************************
                ****************************************************
                    ***********************************************
                         ****     ***********************************
                                   *********************************
                                  ********************************
                                  *******************************
                                   ***        ***************      *
                                               *********
                                               
                                                 ***
 */