You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
567 B

#include <bits/stdc++.h>
using namespace std;
//好题
int main() {
int X;
cin >> X;
int a, d;
a = X / 4;
d = X % 4;
switch (d) {
case 0:
cout << a << " " << 0 << " " << 0 << endl;
break;
case 1:
cout << a << " " << 1 << " " << 0 << endl;
break;
case 2:
cout << a << " " << 0 << " " << 1 << endl;
break;
case 3:
cout << a << " " << 1 << " " << 0 << endl;
break;
}
return 0;
}