Optimizations for Competitive Programming

Правка en2, от vatsal, 2016-06-07 13:53:17

Hello Readers, I have seen that many people don't use scanf or cin or cout or printf but their own input output functions . I have heard that some people were able to pass "naive" algorithm under time limit with the help of optimizations. I would love if everyone here would share their optimization codes and explain meaning of every line so that "everyone" would get it in C++. I only know ios_base::sync_with_stdio(false); cin.tie(0); Also I don't understand the meaning of these lines. Thanks for your efforts. :)

Теги programming, competitve programming, optimization, c++ 11

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский vatsal 2016-06-07 13:53:17 27 Tiny change: 'functions but it looks horrible to me. I have h' -> 'functions . I have h'
en1 Английский vatsal 2016-06-06 17:00:05 587 Initial revision (published)