positivedelta2211's blog

By positivedelta2211, 5 years ago, In English

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

  • Vote: I like it
  • -18
  • Vote: I do not like it

| Write comment?
»
5 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

== 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.