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 17:34Jack FrigaardJack FrigaardScore: 5,808Success
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 17:345,71343,244,36116,251,0002,031,0002,527,232
2Jan 2, 2023 17:345,77239,874,88717,444,0001,026,0002,285,568
3Jan 2, 2023 17:345,78340,561,12817,476,0001,028,0002,285,568
4Jan 2, 2023 17:345,78440,326,30717,480,0001,028,0002,269,184
5Jan 2, 2023 17:345,79346,892,31618,538,00002,285,568
6Jan 2, 2023 17:345,80543,618,82517,545,0001,032,0002,527,232
7Jan 2, 2023 17:345,80885,394,50118,584,38002,301,952
8Jan 2, 2023 17:345,82190,296,44118,627,23202,289,664
9Jan 2, 2023 17:345,85095,870,16418,720,00802,301,952
10Jan 2, 2023 17:345,94948,227,37517,034,0002,004,0002,273,280
11Jan 2, 2023 17:345,97839,717,52617,115,0002,013,0002,527,232
12Jan 2, 2023 17:346,00749,265,72517,200,0002,023,0002,531,328