Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

There was one horror story linked with using size of vector (a.size())

Revision ru1, by Draevich, 2018-12-20 12:05:30

Some guys in my Lyceum told me "a horror story". They claimed that using size of vector (not only vector, all stl data structures) is very dangerous and it can cause time limit. Please, guys, tell me how you refer to his feature and is it so bad as my friends told me?

Tags stl, size

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian Draevich 2018-12-20 12:05:30 338 Первая редакция (опубликовано)