#include #define MAXNV 5 int DONE = 0; int liters[MAXNV]; int numbers[MAXNV]; void show(int nv); void filling(int amount, int cur, int nv); int j=0; int water; int min=100; int min_numbers[MAXNV]={0}; int main(void) { int nv, i; scanf("%d", &nv); for (i=0; i=liters[cur]){ numbers[cur]++; filling(amount-liters[cur],cur,nv); numbers[cur]--; filling(amount,cur+1,nv);//­«­n } else{ filling(amount,cur+1,nv); } } }