In this problem 1008C - Перестановка массива
I used upper_bound(multiset.begin(),multiset.end(),x) and got TLE.
TLE Sub: 77006832
But when I used multiset.upper_bound(x), I got accepted!
AC Sub:77081261
Can anyone explain to me why inbuilt upper_bound() is slower than the member upper_bound() function of std::multiset?