注意点:
暴力求解
#include <iostream>
using namespace std;
int main(){
for(int i = 0; i <= 25; ++i){
for(int j = 0; j <= 33; ++j){
for(int k = 0; k <= 100; ++k){
if (5*i + 3*j + (double)k/3 == 100 && (i + j + k ==100))
cout <<i<<" "<<j<<" "<<k<<endl;
}
}
}
return 0;
}