Comments

Thanks

Hi. Can someone explain to me why at the C problem , I get runtime error if I use the compare function

bool cmp( const pair<long long ,long long> &x, const pair<long long ,long long> &y) { return (x.b<=y.b); }

but accepted when I use < instead of <= .

On .o.Codeforces Round #233 Editorial, 12 years ago
+5

In "If vertex u becomes heavy if we add this edge, for all , add v into Hw and update the value of O[w]. This can be done in O(C). " shouldn't be "add u into Hw " ?

I learned that push_back and this kind of function are a bit laggy and I was afraid of TLE

Thanks! This was the error which ruined my rating ..

Hello . Can anyone tell me what is wrong with my source ? I can't find it and I know the solution is ok .
2728928

On HighFlowChanging profile, 14 years ago
0

Thanks.