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:49Jack FrigaardJack FrigaardScore: 4,859Success
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:494,83138,707,89814,430,0001,030,0002,269,184
2Jan 2, 2023 16:494,83941,660,93015,485,00002,285,568
3Jan 2, 2023 16:494,84032,132,59314,456,0001,032,0002,285,568
4Jan 2, 2023 16:494,84631,382,86615,508,00002,285,568
5Jan 2, 2023 16:494,85340,120,17014,493,0001,035,0002,285,568
6Jan 2, 2023 16:494,85834,037,71414,508,0001,036,0002,269,184
7Jan 2, 2023 16:494,85933,781,78014,514,0001,036,0002,535,424
8Jan 2, 2023 16:494,87340,845,60114,553,0001,039,0002,285,568
9Jan 2, 2023 16:494,89842,218,74615,673,00002,285,568
10Jan 2, 2023 16:495,07281,860,02716,231,27302,306,048
11Jan 2, 2023 16:495,09172,537,62516,292,12602,306,048
12Jan 2, 2023 16:495,09486,136,55316,300,84902,289,664