/* ID: mytbk921 LANG: C TASK: holstein */ #include #include #include #include int vitamins[25]; int feeds[15][25]; int nv; int nf; static unsigned popcount(unsigned x) { unsigned c = 0; while (x) { if (x&1) c++; x >>= 1; } return c; } int main() { FILE *fin = fopen("holstein.in", "r"); FILE *fout = fopen("holstein.out", "w"); int i, j; unsigned scm, best, ans_n, tn; int tmp_v[25]; fscanf(fin, "%d", &nv); for (i=0; i=ans_n) continue; memset(tmp_v, 0, sizeof(tmp_v)); for (i=0; i