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:55Jack FrigaardJack FrigaardScore: 5,428Success
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:555,37538,548,58816,188,0001,011,0002,281,472
2Jan 2, 2023 16:555,38539,201,78715,206,0002,027,0002,527,232
3Jan 2, 2023 16:555,39940,383,52915,246,0002,032,0002,285,568
4Jan 2, 2023 16:555,40148,586,07115,251,0002,033,0002,285,568
5Jan 2, 2023 16:555,42341,956,26615,313,0002,041,0002,285,568
6Jan 2, 2023 16:555,42635,216,94415,320,0002,042,0002,269,184
7Jan 2, 2023 16:555,42846,513,94315,328,0002,043,0002,285,568
8Jan 2, 2023 16:555,43339,389,74615,341,0002,045,0002,523,136
9Jan 2, 2023 16:555,44346,879,20515,367,0002,049,0002,285,568
10Jan 2, 2023 16:555,63292,561,61318,022,29502,301,952
11Jan 2, 2023 16:555,658105,264,10518,106,82602,301,952
12Jan 2, 2023 16:555,67363,843,07318,154,61602,301,952