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 listJul 19, 2024 09:55Matt StuchlikMatt StuchlikScore: 5,768Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2024 09:555,73348,370,15716,308,0002,038,0002,265,088
2Jul 19, 2024 09:555,73640,170,80216,315,0002,039,0002,273,280
3Jul 19, 2024 09:555,73646,374,80917,336,0001,019,0002,269,184
4Jul 19, 2024 09:555,73742,284,11917,339,0001,019,0002,289,664
5Jul 19, 2024 09:555,74636,102,84418,386,00002,273,280
6Jul 19, 2024 09:555,75135,386,55017,380,0001,022,0002,269,184
7Jul 19, 2024 09:555,76841,693,83417,433,0001,025,0002,289,664
8Jul 19, 2024 09:555,76935,959,17016,409,0002,051,0002,289,664
9Jul 19, 2024 09:555,78038,954,87217,468,0001,027,0002,338,816
10Jul 19, 2024 09:555,99788,220,50919,191,38802,293,760
11Jul 19, 2024 09:555,99785,870,54419,191,22202,301,952
12Jul 19, 2024 09:556,01387,710,56119,241,93802,306,048