Strange behavior of lambda-function in sort()

Правка ru1, от rurixx, 2022-05-20 18:11:57

I was solving 1684D - Traps of recent contest and have faced with strange thing.

Pls look at two pairs of submissions. (There are very simple code)

  1. 157815234 — OK, 157815120 — Time limit

  2. 157814018 — OK, 157813947 — Run-time error

In both pairs codes' difference is the same: 'wrong' submission uses lambda function with operator >= instead of > in 'good' submission.

Can it be explained?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru1 Русский rurixx 2022-05-20 18:11:57 541 Первая редакция (опубликовано)