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 29, 2024 22:07Joad NacerJoad NacerScore: 4,853Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 22:074,80031,483,81613,312,0002,048,0002,269,184
2Apr 29, 2024 22:074,81732,498,60915,415,00002,289,664
3Apr 29, 2024 22:074,82941,956,07714,424,0001,030,0002,273,280
4Apr 29, 2024 22:074,84132,135,03714,459,0001,032,0002,289,664
5Apr 29, 2024 22:074,84143,107,55015,491,00002,523,136
6Apr 29, 2024 22:074,85031,820,64214,487,0001,034,0002,289,664
7Apr 29, 2024 22:074,85334,677,24314,495,0001,035,0002,289,664
8Apr 29, 2024 22:074,87747,136,04714,566,0001,040,0002,519,040
9Apr 29, 2024 22:074,89341,146,15614,613,0001,043,0002,289,664
10Apr 29, 2024 22:075,10281,707,45216,327,67102,301,952
11Apr 29, 2024 22:075,14487,887,51416,462,37102,301,952
12Apr 29, 2024 22:075,19061,020,83516,607,89602,179,072