Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. //Submission ID: 1010303
  2.  
  3. #include<stdio.h>
  4. #include<stdlib.h>
  5. #include<time.h>
  6. #include <iostream>
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12. //srand(time(NULL));
  13.  
  14. int _case, a, b, c;
  15. cin>>_case;
  16. for(int i =1; i<=_case; i++)
  17. {
  18. cin>>a;
  19. b = rand()%a+0;
  20. c = a-b;
  21. cout<<b<<" "<<c<<endl;
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement