Description
给定
Constraints
Solution
很显然要将三个数往
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int t; cin >> t;
while(t--) {
int n; cin >> n;
int x, y, z;
if(n % 3 == 0) {
x = n / 3 + 1;
y = n / 3;
z = n / 3 - 1;
} else if(n % 3 == 1) {
x = n / 3 + 2;
y = n / 3;
z = n / 3 - 1;
} else {
x = n / 3 + 2;
y = n / 3 + 1;
z = n / 3 - 1;
}
cout << y << ' ' << x << ' ' << z << endl;
}
}