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:40Jack FrigaardJack FrigaardScore: 5,198Success
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:405,15937,764,55315,478,0001,031,0002,285,568
2Jan 2, 2023 16:405,17243,807,58316,549,00002,285,568
3Jan 2, 2023 16:405,17534,949,45115,525,0001,035,0002,277,376
4Jan 2, 2023 16:405,18037,531,15615,540,0001,036,0002,273,280
5Jan 2, 2023 16:405,18741,919,19616,598,00002,285,568
6Jan 2, 2023 16:405,19048,721,17616,609,00002,277,376
7Jan 2, 2023 16:405,19843,015,07215,593,0001,039,0002,273,280
8Jan 2, 2023 16:405,20246,468,11315,607,0001,040,0002,285,568
9Jan 2, 2023 16:405,21650,143,17315,647,0001,043,0002,527,232
10Jan 2, 2023 16:405,388105,095,78817,241,43002,293,760
11Jan 2, 2023 16:405,402107,294,93017,287,69202,293,760
12Jan 2, 2023 16:405,40378,616,14917,288,12602,293,760