Computer Programming Contest Preparation

ToolBox - Source for: 2/291/b.c



/home/toolbox/public_html/solutions/2/291/b.c
    1 #include <stdio.h>
    2 #include <string.h>
    3 #include <sys/types.h>
    4 #include <sys/stat.h>
    5 #include <fcntl.h>
    6 #include <stdint.h>
    7 #include <math.h>
    8 #include <stdlib.h>
    9 #include <ctype.h>
   10 
   11 #define TRUE  (1 == 1)
   12 #define FALSE (1 != 1)
   13 
   14 #define DEBUG if (FALSE)
   15 
   16 /*
   17  *  Author: Isaac Traxler
   18  *    Date:
   19  * Purpose: fun
   20  * Problem:
   21  */
   22 
   23 void init()
   24 {
   25     /* FUNCTION init */
   26 } /* FUNCTION init */
   27 
   28 void dump()
   29 {
   30     /* FUNCTION dump */
   31 } /* FUNCTION dump */
   32 
   33 void process()
   34 {
   35     /* FUNCTION process */
   36     int a;
   37     a = 1;
   38     printf("(a %d)\n", a);
   39     a = 1;
   40     a = a<<0;
   41     printf("0 (a %d)\n", a);
   42     a = 1;
   43     a = a<<1;
   44     printf("1 (a %d)\n", a);
   45     a = 1;
   46     a = a<<2;
   47     printf("2 (a %d)\n", a);
   48     a = 1;
   49     a = a<<24;
   50     printf("24 (a %d)\n", a);
   51 } /* FUNCTION process */
   52 
   53 int main()
   54 {
   55     /* main */
   56 
   57     init();
   58     process();
   59 
   60     return EXIT_SUCCESS;
   61 } /* main */
   62