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 listMay 8, 2024 21:54Joad NacerJoad NacerScore: 5,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 21:544,96336,306,86415,882,00002,289,664
2May 8, 2024 21:544,96943,895,71914,908,000993,0002,289,664
3May 8, 2024 21:544,98846,255,48213,966,0001,995,0002,531,328
4May 8, 2024 21:544,99838,816,04913,995,0001,999,0002,289,664
5May 8, 2024 21:544,99936,168,33413,999,0001,999,0002,289,664
6May 8, 2024 21:545,00339,539,09014,008,0002,001,0002,289,664
7May 8, 2024 21:545,01133,528,98414,030,0002,004,0002,277,376
8May 8, 2024 21:545,01341,256,34014,035,0002,005,0002,269,184
9May 8, 2024 21:545,02138,533,95614,059,0002,008,0002,289,664
10May 8, 2024 21:545,07484,019,05516,235,97602,293,760
11May 8, 2024 21:545,08586,320,80016,273,55902,293,760
12May 8, 2024 21:545,09478,708,40816,299,89102,306,048