Блог пользователя positivedelta2211

Автор positivedelta2211, 5 лет назад, По-английски

1066C - Книжные запросы I'm trying to solve this problem using deque, but get WA, can any one tell me why it is wrong 155581257

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

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

== But, unlike vectors, deques are not guaranteed to store all its elements in contiguous storage locations: accessing elements in a deque by offsetting a pointer to another element causes undefined behavior. == I think, you can't use difference of addresses.