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 14:49Jack FrigaardJack FrigaardScore: 5,487Success
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 14:495,43740,545,01816,376,0001,023,0002,269,184
2Jan 2, 2023 14:495,45140,127,80617,444,00002,527,232
3Jan 2, 2023 14:495,45939,898,48916,441,0001,027,0002,527,232
4Jan 2, 2023 14:495,46340,766,39615,424,0002,056,0002,285,568
5Jan 2, 2023 14:495,46335,282,52317,481,00002,285,568
6Jan 2, 2023 14:495,48341,966,96116,515,0001,032,0002,527,232
7Jan 2, 2023 14:495,48734,465,19416,525,0001,032,0002,379,776
8Jan 2, 2023 14:495,49734,973,81816,555,0001,034,0002,355,200
9Jan 2, 2023 14:495,50532,931,56216,579,0001,036,0002,285,568
10Jan 2, 2023 14:495,68187,946,73318,177,66602,293,760
11Jan 2, 2023 14:495,69277,053,22618,215,97902,256,896
12Jan 2, 2023 14:495,73099,445,44918,334,86802,289,664