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 listJul 28, 2024 08:58BenBenScore: 4,578Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2024 08:584,52835,392,82913,455,0001,035,0002,265,088
2Jul 28, 2024 08:584,53537,797,46414,513,00002,265,088
3Jul 28, 2024 08:584,53838,201,67014,523,00002,265,088
4Jul 28, 2024 08:584,55831,559,79413,545,0001,041,0002,392,064
5Jul 28, 2024 08:584,56132,064,23513,553,0001,042,0002,265,088
6Jul 28, 2024 08:584,56631,639,90513,568,0001,043,0002,387,968
7Jul 28, 2024 08:584,57834,035,16214,648,00002,392,064
8Jul 28, 2024 08:584,57937,694,74613,607,0001,046,0002,396,160
9Jul 28, 2024 08:584,58636,313,73213,628,0001,048,0002,396,160
10Jul 28, 2024 08:584,79775,026,81115,351,12502,273,280
11Jul 28, 2024 08:584,801101,106,12215,362,81702,281,472
12Jul 28, 2024 08:584,81362,348,40915,402,18302,277,376