Advertisement
erfanul007

LightOJ 1001

Dec 26th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int t,n,x,y,i;
  5. scanf("%d",&t);
  6. for(i=1;i<=t;i++){
  7. scanf("%d",&n);
  8. x=n/2;
  9. y=x;
  10. if(n%2==1)
  11. y=y+1;
  12. printf("%d %d\n",x,y);
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement