#include#include#includeusingnamespacestd;ifstreamfin("in.txt");//ofstreamfout("E:\\out.txt");constintP=100,S=100;intAvailable[S];intMax[P][S];intAllocation[P][S];intNeed[P][S];intRequest[P][S];intWork[S];boolFinish[P];boolflag=true;intCou