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 30, 2024 03:32BenBenError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2024 03:3200000Error: expected "976519 ", got "978168 "
2Jul 30, 2024 03:325,09631,869,20314,270,0002,038,0002,387,968
3Jul 30, 2024 03:325,09834,023,20415,293,0001,019,0002,527,232
4Jul 30, 2024 03:325,10243,498,80315,307,0001,020,0002,265,088
5Jul 30, 2024 03:325,10639,890,07416,338,00002,265,088
6Jul 30, 2024 03:325,11329,941,41716,363,00002,269,184
7Jul 30, 2024 03:325,12071,048,32016,382,55202,285,568
8Jul 30, 2024 03:325,12233,521,43915,365,0001,024,0002,387,968
9Jul 30, 2024 03:325,13944,486,80515,419,0001,027,0002,265,088
10Jul 30, 2024 03:325,14535,104,22916,464,00002,265,088
11Jul 30, 2024 03:325,15439,027,01715,463,0001,030,0002,265,088
12Jul 30, 2024 03:325,16377,719,16316,522,63102,289,664
13Jul 30, 2024 03:325,30958,472,99316,988,28402,281,472