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 22:20Jack FrigaardJack FrigaardScore: 4,855Success
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 22:204,80937,999,90515,388,00002,289,664
2Jan 2, 2023 22:204,82333,097,21914,404,0001,028,0002,265,088
3Jan 2, 2023 22:204,82532,175,83514,411,0001,029,0002,277,376
4Jan 2, 2023 22:204,83234,772,51614,433,0001,030,0002,289,664
5Jan 2, 2023 22:204,83332,988,63713,405,0002,062,0002,289,664
6Jan 2, 2023 22:204,85235,250,44914,490,0001,035,0002,355,200
7Jan 2, 2023 22:204,85536,746,61814,501,0001,035,0002,289,664
8Jan 2, 2023 22:204,85535,936,93914,502,0001,035,0002,289,664
9Jan 2, 2023 22:204,87131,225,36514,548,0001,039,0002,289,664
10Jan 2, 2023 22:205,02683,432,80116,083,37902,301,952
11Jan 2, 2023 22:205,047100,439,82116,151,68202,293,760
12Jan 2, 2023 22:205,06382,921,12116,200,08402,297,856