f2016082's blog

By f2016082, history, 5 weeks ago, In English

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.

  • Vote: I like it
  • +4
  • Vote: I do not like it

5 weeks ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

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.

  • »
    5 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Thank you so much for telling me about pyrival. This makes it so much easier