/home/toolbox/public_html/solutions/127/12708/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: 2015-10-01
20 * Purpose: fun
21 * Problem: 12708 - GCD The Largest
22 */
23
24 /*
25 * This template reads data a specified number of times.
26 */
27
28 int numberOfTimes;
29 long long num;
30
31 void init()
32 {
33 /* FUNCTION init */
34 scanf("%d ", &numberOfTimes);
35 } /* FUNCTION init */
36
37 void dump()
38 {
39 /* FUNCTION dump */
40 } /* FUNCTION dump */
41
42 void getInput()
43 {
44 /* FUNCTION getInput */
45 scanf(" %Ld ", &num);
46 } /* FUNCTION getInput */
47
48 void process()
49 {
50 /* FUNCTION process */
51 num = num >> 1;
52 printf("%Ld\n", num);
53 } /* FUNCTION process */
54
55 int main()
56 {
57 /* main */
58 int i;
59
60 init();
61 for (i=0; i<numberOfTimes; i++)
62 {
63 /* while */
64 getInput();
65 process();
66 } /* while */
67
68 return EXIT_SUCCESS;
69 } /* main */
70
71