Untitled

mail@pastecode.io avatar
unknown
plain_text
22 days ago
275 B
6
Indexable
Never
////////////Set a

*********divisible by 3
#include <bits/stdc++.h>

using namespace std;

int32_t main()
{

  int t = 1;
  cin >> t;
  while (t--) {
	int n; cin >> n;
	int y = n % 3;
	int x = 3 - (n % 3);
	cout << x << " " << y << endl;
}
 return 0;
}

Leave a Comment