Created
May 26, 2014 10:02
-
-
Save zsrinivas/aa73599cb3bedbbed662 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <assert.h> | |
#include <ctype.h> | |
int main(int argc, char const *argv[]) | |
{ | |
int testc; | |
long long int n; | |
scanf("%d", &testc); | |
while(testc--) | |
{ | |
scanf("%lld", &n); | |
printf("%lld\n", ((long long int)n/2)*(n-(long long int)(n/2))); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment