UVA 11559 - Event Planning UVA • Sep 1, 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 Tags UVA Competitive Programming Shipu Ahamed Recommended for you UVA UVA 913 - Joana and the Odd Numbers 4 years ago • 1 min read UVA UVA 871 - Counting Cells in a Blob 4 years ago • 3 min read UVA UVA 866 - Intersecting Line Segments 4 years ago • 3 min read