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.

17 lines
411 B

#include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0; i < 18; ++i) {
for (int j = 0; j < 18; ++j) {
for (int k = 0; k < 18; ++k) {
if (i * 8 + j * 6 + k * 6 == 118 && i + j + k == 18 && j * 2 + k == 20) {
cout << i << " " << j << " " << k << endl;
}
}
}
}
return 0;
}