Resource Allocation in Multiparty Elections