Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t;
- cin>>t;
- for(int c=1;c<=t;c++)
- {
- int x,a,b;
- cin>>x;
- a=x/2;
- b=a+x%2;
- cout<<a<< " "<<b<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement