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 17, 2024 00:29Joad NacerJoad NacerScore: 5,495Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 00:295,43137,343,57817,379,00002,265,088
2Apr 17, 2024 00:295,44143,420,30716,388,0001,024,0002,289,664
3Apr 17, 2024 00:295,44834,662,84017,435,00002,527,232
4Apr 17, 2024 00:295,45240,551,02916,419,0001,026,0002,289,664
5Apr 17, 2024 00:295,45935,446,44416,441,0001,027,0002,269,184
6Apr 17, 2024 00:295,48748,153,86517,557,00002,289,664
7Apr 17, 2024 00:295,49538,604,55716,549,0001,034,0002,527,232
8Apr 17, 2024 00:295,49645,673,47317,588,00002,289,664
9Apr 17, 2024 00:295,51145,514,73017,634,00002,289,664
10Apr 17, 2024 00:295,69291,689,67018,214,61102,179,072
11Apr 17, 2024 00:295,70875,063,46318,265,09502,297,856
12Apr 17, 2024 00:295,74282,944,59418,375,87002,301,952