VS Code setup for competitive programming in python.

Published: 23 April 2020
on channel: theCodingRant channel
12,543
325

Put in place your own setup for competitive programming in python using VS Code.
It is always better to have a local setup rather than relying on online compilers.
It is also a great setup for advanced competitions like Google CodeJam where input is expected in a text file and output has to be written to a text file as well.

Snippet I used in the video:

import sys
sys.stdout = open('{current folder}/output.txt', 'w')
sys.stdin = open('{current folder}/input.txt', 'r')

Similar setup can be done for the ones who prefer C++ over python.


On this page of the site you can watch the video online VS Code setup for competitive programming in python. with a duration of hours minute second in good quality, which was uploaded by the user theCodingRant channel 23 April 2020, share the link with friends and acquaintances, this video has already been watched 12,543 times on youtube and it was liked by 325 viewers. Enjoy your viewing!