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 18:42Joad NacerJoad NacerScore: 4,849Success
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 18:424,80437,274,31015,372,00002,277,376
2Apr 17, 2024 18:424,81639,179,70514,384,0001,027,0002,367,488
3Apr 17, 2024 18:424,82438,976,85115,437,00002,289,664
4Apr 17, 2024 18:424,83234,908,86214,433,0001,030,0002,289,664
5Apr 17, 2024 18:424,83840,036,39614,450,0001,032,0002,531,328
6Apr 17, 2024 18:424,84944,691,87514,483,0001,034,0002,289,664
7Apr 17, 2024 18:424,84932,427,17114,484,0001,034,0002,289,664
8Apr 17, 2024 18:424,85738,580,23514,506,0001,036,0002,265,088
9Apr 17, 2024 18:424,86842,448,60614,541,0001,038,0002,289,664
10Apr 17, 2024 18:425,07192,333,75316,226,42202,301,952
11Apr 17, 2024 18:425,08964,366,39116,284,34702,301,952
12Apr 17, 2024 18:425,15199,248,76416,482,92702,301,952