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.

18 lines
436 B

#include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i <= 36; ++i) {
for (int j = 0; j <= 36; ++j) {
for (int k = 0; k <= 36; ++k) {
if (i + j + k == 36 && i * 4 + j * 3 + k / 2 == 36 && k % 2 == 0) {
cout << i << " " << j << " " << k << endl;
break;
}
}
}
}
return 0;
}