Hi there!
In this blog I would like to share some of the code snippets that can shorten your time in future contests. Of course, I'll ignore the "international snippets"
Sometimes you may find typing the identical thing again and again is boring, this blog is about some method that a few people use to get rid of them (or just only me).
So, let's get started.
Scanning/printing the whole vector in a single std::cin/std::cout
Scanning/printing std::pair
Ordered set and ordered multiset
Short declaration of 2D and 3D vectors
Erase repeated neighbor elements
Prime test for large numbers
Longest Increasing Subsequence
Longest Strictly Increasing Subsequence
Some snippets are mine, some are taken from the internet. If you want to add some snippets on the blog, please let me know in the comment section.
You can read more about ordered_set and ordered_multiset here: https://codeforces.me/blog/entry/11080
Thanks for reading! Hope this can help you.