UVA 11559 - Event Planning Shipu Ahamed - 01 Sep 2020 Problem PDFSolution:#include int main() { long frnd,bud,hotel,week,amount,cost=15000000,b,p,visit,i,j,room; while(scanf("%ld%ld%ld%ld",&frnd,&bud,&hotel,&week)==4) { for(i=0;i=frnd) { p=amount*frnd; if(cost>p) cost=p; } } } if(cost>bud) printf("stay home\n"); else printf("%ld\n",cost); cost=15000000; } return 0; } //khub valo laglo problem ta kore........ https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11559/11559.cpp