ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1100. Final Standings

wa2 c++ sort with comparator
Posted by majorro 25 Sep 2020 04:51
Why does

bool comp(pair<int,int>& a, pair<int,int>& b)
{
    return a.second > b.second;
}

not AC with common sort?
Re: wa2 c++ sort with comparator
Posted by xinxer 9 Jan 2024 14:58
You are not following the bubble sort ordering :)