Chef and Bored Games
All submissions for this problem are available.Chef has recently been playing a lot of chess in preparation for the ICCT (International Chef Chess Tournament). Since putting in long hours is not an easy task, Chef's mind wanders elsewhere. He starts counting the number of squares with odd side length on his chessboard.. However, Chef is not satisfied. He wants to know the number of squares of odd side length on a generic $N*N$ chessboard. ###Input: - The first line will contain a single integer $T$, the number of test cases. - The next $T$ lines will have a single integer $N$, the size of the chess board. ###Output: For each test case, print a integer denoting the number of squares with odd length. ###Constraints - $1 \leq T \leq 100$ - $1 \leq N \leq 1000$ ###Sample Input: 2 3 8 ###Sample Output: 10 120
|Tags||madhav_1999, madhav_1999, pcj, prakhar17252, proconjunior, tanmay28|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.