Ankit_132

A

Nov 15th, 2023
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1.  
  2. #include <bits/stdc++.h>
  3.  
  4. using namespace std;
  5.  
  6. #define _test   int _TEST; cin>>_TEST; while(_TEST--)
  7.  
  8. int main()
  9. {
  10.     _test
  11.     {
  12.         int n;
  13.         cin>>n;
  14.  
  15.         if(n >= 5)
  16.             cout<<1<<" "<<n-1<<"\n";
  17.         else
  18.             cout<<0<<" "<<n<<"\n";
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment