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:21Jack FrigaardJack FrigaardScore: 5,402Success
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:215,26234,593,34215,848,000990,0002,523,136
2Jan 2, 2023 16:215,27443,794,85914,891,0001,985,0002,269,184
3Jan 2, 2023 16:215,27945,833,17614,905,0001,987,0002,387,968
4Jan 2, 2023 16:215,27945,826,00115,899,000993,0002,285,568
5Jan 2, 2023 16:215,28733,438,90514,928,0001,990,0002,269,184
6Jan 2, 2023 16:215,34339,067,43916,092,0001,005,0002,285,568
7Jan 2, 2023 16:215,40246,830,98116,270,0001,016,0002,285,568
8Jan 2, 2023 16:215,46741,800,39916,465,0001,029,0002,277,376
9Jan 2, 2023 16:215,46939,814,81016,472,0001,029,0002,367,488
10Jan 2, 2023 16:215,49056,253,63717,567,51602,293,760
11Jan 2, 2023 16:215,513101,723,13317,643,10402,301,952
12Jan 2, 2023 16:215,51484,570,70317,645,50202,297,856