1 solutions
-
0
C++ :
#include<cstdio> int read() { char c=getchar(); int x=0; while(c<'0'||c>'9')c=getchar(); for(;c>='0'&&c<='9';c=getchar())x=x*10+c-'0'; return x; } int main() { int t,n; t=read(); while(t--) n=read(),printf("%d\n",(n>>1)*(n>>1)-(n&1?0:n>>1)); return 0; }
- 1
Information
- ID
- 19561
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By