Computer Programming Contest Preparation

ToolBox - Source for: 6/619/x.c



/home/toolbox/public_html/solutions/6/619/x.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 
   10 #define TRUE  (1 == 1)
   11 #define FALSE (1 != 1)
   12 
   13 #define DEBUG if (FALSE)
   14 
   15 /*
   16  *  Author:
   17  *    Date:
   18  * Purpose:
   19  * Problem:
   20  */
   21 
   22 /*
   23  * This template reads data until a terminating value is reached.
   24  */
   25 
   26 void init()
   27 {
   28     /* FUNCTION init */
   29 } /* FUNCTION init */
   30 
   31 void dump()
   32 {
   33     /* FUNCTION dump */
   34 } /* FUNCTION dump */
   35 
   36 int getInput()
   37 {
   38     /* FUNCTION getInput */
   39     int dataReadFlag;
   40     return (dataReadFlag);
   41 } /* FUNCTION getInput */
   42 
   43 void process()
   44 {
   45     /* FUNCTION process */
   46     int i;
   47     unsigned long long int t = 1;
   48 
   49     for (i=0; i<21; i++)
   50         {
   51             /* for */
   52             printf("%2d: %llu\n", i, t);
   53             t = t *26 + 1;
   54         } /* for */
   55 } /* FUNCTION process */
   56 
   57 int main ()
   58 {
   59     /* main */
   60     int moreToDo;
   61 
   62     process();
   63 
   64     return EXIT_SUCCESS;
   65 } /* main */
   66