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 listJan 2, 2023 16:06Jack FrigaardJack FrigaardScore: 5,495Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:065,43432,549,12415,344,0002,045,0002,285,568
2Jan 2, 2023 16:065,45942,622,79916,443,0001,027,0002,285,568
3Jan 2, 2023 16:065,46843,838,14816,468,0001,029,0002,273,280
4Jan 2, 2023 16:065,48243,536,35117,543,00002,285,568
5Jan 2, 2023 16:065,48340,151,42116,512,0001,032,0002,269,184
6Jan 2, 2023 16:065,48836,886,07516,529,0001,033,0002,285,568
7Jan 2, 2023 16:065,49546,643,61617,583,00002,285,568
8Jan 2, 2023 16:065,49739,227,49116,557,0001,034,0002,523,136
9Jan 2, 2023 16:065,50950,296,26016,593,0001,037,0002,277,376
10Jan 2, 2023 16:065,68290,173,58518,181,89402,293,760
11Jan 2, 2023 16:065,69383,751,10418,217,07002,297,856
12Jan 2, 2023 16:065,75592,621,62318,414,88302,301,952