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:32Jack FrigaardJack FrigaardScore: 5,042Success
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:324,99832,990,80813,993,0001,999,0002,285,568
2Jan 2, 2023 16:325,01138,343,33914,031,0002,004,0002,523,136
3Jan 2, 2023 16:325,01640,255,91314,045,0002,006,0002,285,568
4Jan 2, 2023 16:325,01838,119,03514,049,0002,007,0002,285,568
5Jan 2, 2023 16:325,02933,197,58214,083,0002,011,0002,285,568
6Jan 2, 2023 16:325,03938,736,27416,124,00002,379,776
7Jan 2, 2023 16:325,04233,002,18515,127,0001,008,0002,527,232
8Jan 2, 2023 16:325,06345,601,04114,178,0002,025,0002,527,232
9Jan 2, 2023 16:325,06639,812,03214,184,0002,026,0002,523,136
10Jan 2, 2023 16:325,26573,668,10316,847,00002,297,856
11Jan 2, 2023 16:325,26782,244,31616,854,89202,293,760
12Jan 2, 2023 16:325,27766,476,50816,887,19102,297,856