Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listApr 20, 2024 15:01Joad NacerJoad NacerScore: 4,887Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 15:014,82832,120,82415,448,00002,269,184
2Apr 20, 2024 15:014,83135,293,44914,430,0001,030,0002,289,664
3Apr 20, 2024 15:014,83536,655,01914,440,0001,031,0002,273,280
4Apr 20, 2024 15:014,84034,816,99415,487,00002,289,664
5Apr 20, 2024 15:014,84341,306,40114,464,0001,033,0002,289,664
6Apr 20, 2024 15:014,86834,896,58514,539,0001,038,0002,289,664
7Apr 20, 2024 15:014,88731,709,96114,595,0001,042,0002,289,664
8Apr 20, 2024 15:014,90632,198,67414,652,0001,046,0002,281,472
9Apr 20, 2024 15:014,96440,623,31015,885,00002,523,136
10Apr 20, 2024 15:015,08589,455,11816,271,07202,252,800
11Apr 20, 2024 15:015,15290,377,46516,485,77302,297,856
12Apr 20, 2024 15:015,15786,211,47016,502,80202,301,952