Competitive Programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Competitive Programming

Can we start a thread where we all can share views and tips related to competitive programming. Maybe this thread will help everyone to get to know STL and other useful tips and tricks for CP.

27th Jul 2017, 2:54 PM
Lovish Arora
Lovish Arora - avatar
10 Answers
+ 3
So, this->thread = protip.thread essentially?
27th Jul 2017, 4:04 PM
Jamie
Jamie - avatar
+ 4
On that note. Tip: look into std::cin.clear(); is well.
27th Jul 2017, 5:52 PM
Manual
Manual - avatar
27th Jul 2017, 5:53 PM
Manual
Manual - avatar
+ 3
Okay... Protip: Have a look at std::cin.ignore(). It will ignore a specific number of chars or until a specified char is entered. Very useful in console apps.
27th Jul 2017, 5:47 PM
Jamie
Jamie - avatar
+ 2
@Lovish What do you like about competitive programming?
27th Jul 2017, 3:23 PM
Manual
Manual - avatar
+ 2
For those who new to C++ STL - Standard Template Library Here is a reference: http://www.cplusplus.com/reference/stl/?kw=stl
27th Jul 2017, 3:26 PM
Manual
Manual - avatar
+ 1
Sure, I am up for C++ tricks and tips
27th Jul 2017, 3:22 PM
Manual
Manual - avatar
+ 1
@Manual I love the very essence of being competitive. I mean the way it makes us exercise our mind to extremes. Working in teams and learning from others for a contest with restricted time is all I like about CP.
27th Jul 2017, 3:37 PM
Lovish Arora
Lovish Arora - avatar
+ 1
@Jamie yes. ☺
27th Jul 2017, 4:53 PM
Lovish Arora
Lovish Arora - avatar
+ 1
Can someone discuss about multidimensional vectors in C++?
28th Jul 2017, 9:43 AM
Lovish Arora
Lovish Arora - avatar