how to speed up i/o in Python for competitive programming on codechef | Sololearn: Learn to code for FREE!

+1

how to speed up i/o in Python for competitive programming on codechef

I am facing a lot of problems as my scripts does not execute in the given time limit on codechef. I know python is bit slow as compared to c or c++ but can i make faster i/o a bit faster by using some standard library or module besides methods like input () and print()

6/30/2017 4:17:24 PM

tanweer anwar

3 Answers

New Answer

+2

then you'd better rephrase your question and make it clear and precise what your asking for, that is just Python programming solutions. also show appropriate section of your code

+1

reduce I/o to minimum, check internet speed, ask codechef support, read FAQs, go to forum. your problem seems pretty average so the answer is there someplace. I'd check also hardware and os settings

0

i think you didn't get my question. I am just asking that is there anyway to get faster input output by using any other standard method or library besides input() or print().