How to get <0.02 sec.?
Hey guys,
how to get run time under 0.02s?
I implement O(n) solution, but my time is ~0.15s for CLang...
What optimisations do you use?
Re: How to get <0.02 sec.?
I used fast I/O to get 0.031. There are faster input methods that use fwrite/fread while mine is based on getChar/writeChar. Perhaps using even faster I/O can get you to 0.015
[code deleted]
Edited by author 10.09.2019 14:33
Edited by moderator 24.11.2019 13:26
Re: How to get <0.02 sec.?
And yes. I got accepted in 0.015s using fread/fwrite IO and C language compiler (not C++)