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 3, 2024 02:13Christopher TarryChristopher TarryScore: 5,525Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 02:135,48734,921,46316,525,0001,032,0002,265,088
2May 3, 2024 02:135,48834,781,19917,563,00002,527,232
3May 3, 2024 02:135,49040,256,80916,536,0001,033,0002,392,064
4May 3, 2024 02:135,51943,633,67617,660,00002,502,656
5May 3, 2024 02:135,52343,268,58317,673,00002,506,752
6May 3, 2024 02:135,52347,476,44016,636,0001,039,0002,392,064
7May 3, 2024 02:135,52537,056,78716,640,0001,040,0002,265,088
8May 3, 2024 02:135,52542,262,60516,640,0001,040,0002,265,088
9May 3, 2024 02:135,53449,548,56816,669,0001,041,0002,392,064
10May 3, 2024 02:135,69093,849,38318,208,41902,244,608
11May 3, 2024 02:135,72885,930,81218,330,82502,289,664
12May 3, 2024 02:135,75072,373,67418,399,51002,281,472