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.
In questa pagina del sito puoi guardare il video online VS Code setup for competitive programming in python. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato theCodingRant channel 23 aprile 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 12,543 volte e gli è piaciuto 325 spettatori. Buona visione!