Hi there, I am asking for a tips/tricks or a template for python competitive that does the same. For example, One tip would be to use sys.stdin.readline instead of input cause its much faster. It costed me a few contest question before I read a bunch of comments online telling me the same. Which is why I am asking, If anyone knows a good resource or template or tips please share the same. Thanks in advance.
Hi, I also started with Python, but switched to C++, because I faced the same issues. However, I did see a library called "PyRival" on github. It contains both a template using FastIO, but also some other nice stuff. I should also say, that I haven't tested it myself. Hope that helps.
Thank you so much for telling me about pyrival. This makes it so much easier
I took some notes some time ago and would share them below. Hope it will help.
Thanks a lot for the tips.