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