ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1517. Freedom of Choice

_getchar_nolock can really boost your code
Posted by Mahilewets 27 May 2017 09:39
So at first I got AC in 68 ms using scanf("%c", *char)  and then I replaced scanf with_getchar_nolock()  and got AC in 46 ms...
Re: _getchar_nolock can really boost your code
Posted by Mahilewets 27 May 2017 09:56
And 31 ms with _putchar_nolock!