UVA 11849 - CD Shipu Ahamed - 01 Sep 2020 Problem PDFSolution:#include #include using namespace std; int main() { int n,m,a,i,c; while(scanf("%d%d",&n,&m)==2) { if(n==0&&m==0) break; c=0; mapmp; for(i=0;ihttps://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11849/11849.cpp