This contains my templates and snippets for competitive programming in (mostly) Python.
For beginners, I recommend starting out on LeetCode. You can try their exercises and participate in the weekly contests. You do not need to install anything on your computer because the IDE is built-in. Neither do you need to parse input and output, or search for the wrong test cases.
I also recommend starting out with Python and working on the exercises on LeetCode. The syntax is easier to write and understand. This Python snippets that I have written can to get you up to speed on what the language can offer.
Only after participating in a few contests and if you are really interested in competitive programming, you can start to get serious by participating in Codeforces and AtCoder contests. These platforms do not have an built-in IDE, and you will need to test your code on your computer.
For every competition, I will create a new branch out of master
and edit my code in ./template
folder. At the end of the competition, I will push my branch to GitHub.
See ./template
for my competition templates.