Computer Programming Contest Preparation

ToolBox - Source for: 11/1148/a.c



/home/toolbox/public_html/solutions/11/1148/a.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 <stdlib.h>
    7 #include <math.h>
    8 #include <stdint.h>
    9 
   10 #define TRUE  (1 == 1)
   11 #define FALSE (1 != 1)
   12 
   13 #define DEBUG if (FALSE)
   14 
   15 /* fprintf(stderr, "functionName: message", varslist); */
   16 
   17 /*
   18  *  Author: Isaac Traxler
   19  *    Date: 2020-10-27
   20  * Purpose: fun
   21  * Problem: 1148 - The mysterious X network
   22  */
   23 
   24 /*
   25  * This template reads data a specified number of times.
   26  */
   27 
   28 int numberOfTimes;
   29 
   30 void init()
   31 {
   32     /* FUNCTION init */
   33     scanf("%d ", &numberOfTimes);
   34 } /* FUNCTION init */
   35 
   36 void dump()
   37 {
   38     /* FUNCTION dump */
   39 } /* FUNCTION dump */
   40 
   41 void getInput()
   42 {
   43     /* FUNCTION getInput */
   44 } /* FUNCTION getInput */
   45 
   46 void process()
   47 {
   48     /* FUNCTION process */
   49 } /* FUNCTION process */
   50 
   51 int main()
   52 {
   53     /* main */
   54     int i;
   55 
   56     init();
   57     for (i=0; i<numberOfTimes; i++)
   58         {
   59             /* while */
   60             getInput();
   61             process();
   62         } /* while */
   63 
   64     return EXIT_SUCCESS;
   65 } /* main */
   66 
   67