Problem Link: https://www.codechef.com/problems/COPS
Submission Link: https://www.codechef.com/viewsolution/17465660
I am not getting why my submission is giving WA. Can someone please point out the mistake?
Problem Link: https://www.codechef.com/problems/COPS
Submission Link: https://www.codechef.com/viewsolution/17465660
I am not getting why my submission is giving WA. Can someone please point out the mistake?
@saurabhrk What do you intend to do in this part.
int ans = 0;
for(int i=0,j=1;j=1)
ans+= not_covered;
}
ans += 100-l.get(l.size()-1).end;
ans += l.get(0).st-1;