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 22:20Jack FrigaardJack FrigaardScore: 4,825Success
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 22:204,79343,664,25813,294,0002,045,0002,289,664
2Jan 2, 2023 22:204,79932,472,98513,311,0002,047,0002,273,280
3Jan 2, 2023 22:204,80030,428,33713,312,0002,048,0002,273,280
4Jan 2, 2023 22:204,80837,811,19315,385,00002,269,184
5Jan 2, 2023 22:204,82330,823,78714,405,0001,028,0002,289,664
6Jan 2, 2023 22:204,82431,427,68314,408,0001,029,0002,265,088
7Jan 2, 2023 22:204,82536,746,70513,381,0002,058,0002,285,568
8Jan 2, 2023 22:204,84835,502,91314,481,0001,034,0002,289,664
9Jan 2, 2023 22:204,85735,932,68714,506,0001,036,0002,269,184
10Jan 2, 2023 22:205,07271,490,22616,229,49602,252,800
11Jan 2, 2023 22:205,07589,481,79716,240,86902,306,048
12Jan 2, 2023 22:205,086115,541,54016,274,07402,256,896