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 10:07Matt StuchlikMatt StuchlikScore: 5,451Success
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 10:075,38636,109,83315,207,0002,027,0002,289,664
2Jul 19, 2024 10:075,42445,026,13717,358,00002,265,088
3Jul 19, 2024 10:075,42842,491,42615,325,0002,043,0002,289,664
4Jul 19, 2024 10:075,42836,111,58916,348,0001,021,0002,265,088
5Jul 19, 2024 10:075,42837,929,32815,327,0002,043,0002,527,232
6Jul 19, 2024 10:075,44142,428,23815,362,0002,048,0002,289,664
7Jul 19, 2024 10:075,45136,624,09216,417,0001,026,0002,273,280
8Jul 19, 2024 10:075,46242,305,87516,450,0001,028,0002,273,280
9Jul 19, 2024 10:075,46333,492,90617,481,00002,289,664
10Jul 19, 2024 10:075,66875,319,35018,136,49602,301,952
11Jul 19, 2024 10:075,67264,555,88218,149,61902,306,048
12Jul 19, 2024 10:075,70484,789,25518,252,49602,174,976