Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя sahilarora.535

Автор sahilarora.535, история, 8 лет назад, По-английски

This submission: 374 Div2 B — Sahil Arora gives an RTE on test case 28, while it is working fine on my machine, and I am unable to figure out why. Any help would be appreciated.

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by sahilarora.535 (previous revision, new revision, compare).

»
8 лет назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

The comparison function cmp2 that you pass as a parameter, for some elements a and b, will give the following interpretation to std::sort: a < b and b < a, which is an absurd. This happens in a case that a and b have the same size and neither is equal to s.