Solución al problema número 573 de AceptaelReto - 573.

Cualquier duda no dudes en contactar.


#include <bits/stdc++.h>
using namespace std;

long long int memo[105][5005];
long long int convencer[105];
long long int aporta[105];
int idxDP;

long long int DP(int idx, int lleva){
    if(lleva<=0) return 0;
    if(idx==idxDP) return 0x3f3f3f3f;
    long long int &best = memo[idx][lleva];
    if(best!=-1) return best;
    return best = min(DP(idx+1,lleva-aporta[idx])+convencer[idx],DP(idx+1,lleva));
}

int main(){
    int N;
    while(scanf("%d",&N)==1){
        idxDP = 0;
        long long int totalDelegados = 0;
        long long int delegadosDonaldAsegurados = 0;
        long long int delegadosAspirante = 0;
        for(int i=0; i<N;i++){
            int delegados,donald,indecisos,aspirante;
            scanf("%d %d %d %d",&delegados,&donald,&aspirante,&indecisos);
            totalDelegados+=delegados;
            long long int totalVotos = donald+indecisos+aspirante;
            long long int minimoVotos = totalVotos/2+1;
            if(donald>=minimoVotos) delegadosDonaldAsegurados+=delegados;
            else if((donald+indecisos)>=minimoVotos){
                convencer[idxDP]=minimoVotos-donald;
                aporta[idxDP]=delegados;
                idxDP++;
            }
            else delegadosAspirante+=delegados;
        }
        int minimoDelegados = totalDelegados/2+1;
        if(delegadosAspirante>=minimoDelegados) printf("IMPOSIBLE\n");
        else {
            int conseguir = minimoDelegados-delegadosDonaldAsegurados;
            for(int i=0; i<=idxDP;i++)
                for(int j=0; j<=conseguir; j++) memo[i][j]=-1;
            long long int res = DP(0,conseguir);
            if(res>=0x3f3f3f3f) printf("IMPOSIBLE\n");
            else printf("%lld\n",res);
        }
    }
    return 0;
}
/*

100
0 1 1 0
0 1 0 1
1 0 1 1
1 1 1 1
1 0 0 0
1 1 1 0
0 0 0 0
0 0 0 1
0 1 1 1
1 1 1 0
1 1 1 1
0 1 0 0
0 0 0 1
1 1 0 0
0 0 0 0
1 0 0 1
1 1 0 0
1 1 1 0
1 0 0 0
1 0 0 1
1 1 0 0
1 1 1 1
1 1 1 1
1 1 0 1
1 0 0 0
1 1 0 1
0 1 0 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