Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int t,n,x,y,i;
- scanf("%d",&t);
- for(i=1;i<=t;i++){
- scanf("%d",&n);
- x=n/2;
- y=x;
- if(n%2==1)
- y=y+1;
- printf("%d %d\n",x,y);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement