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:36Joad NacerJoad NacerScore: 5,232Success
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:365,15331,531,12415,459,0001,030,0002,527,232
2May 8, 2024 21:365,17735,348,59116,567,00002,289,664
3May 8, 2024 21:365,18636,279,98615,557,0001,037,0002,269,184
4May 8, 2024 21:365,18933,570,43115,568,0001,037,0002,289,664
5May 8, 2024 21:365,21937,356,22915,659,0001,043,0002,273,280
6May 8, 2024 21:365,22339,733,65216,712,00002,289,664
7May 8, 2024 21:365,23233,584,46415,695,0001,046,0002,289,664
8May 8, 2024 21:365,26845,714,77515,866,000991,0002,289,664
9May 8, 2024 21:365,27642,713,01116,883,00002,289,664
10May 8, 2024 21:365,44085,093,66417,408,51002,301,952
11May 8, 2024 21:365,45075,317,74717,440,63602,293,760
12May 8, 2024 21:365,50997,055,52717,628,13202,179,072