Advertisement
AKIB37

Untitled

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