Lower bound on empty set is TL!?

Правка en1, от radoslav11, 2015-12-30 22:00:35

While solving Goodbye 2015, E i was getting TL on test 11. Now after the contest I decided to see what was the problem.

After some debugging I found that when you do lower bound on an empty set it gives TL:

http://codeforces.net/contest/611/submission/15127498 — AC
http://codeforces.net/contest/611/submission/15126396 — TL11

The only difference is ans if(s.size() == 0) break;

So I want to ask if there are similar issues with the std::set.

Теги set, c++, lower bound

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский radoslav11 2015-12-30 22:30:56 161
en1 Английский radoslav11 2015-12-30 22:00:35 511 Initial revision (published)