+ 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()

30th Jun 2017, 4:17 PM
tanweer anwar
tanweer anwar - avatar
3 Antworten
+ 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
2nd Jul 2017, 10:15 AM
Skipper
Skipper - avatar
+ 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
1st Jul 2017, 11:38 PM
Skipper
Skipper - avatar
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().
2nd Jul 2017, 8:53 AM
tanweer anwar
tanweer anwar - avatar