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 3, 2023 18:48Hal FHal FScore: 4,960Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 18:484,86330,534,95414,525,0001,037,0002,281,472
2Jan 3, 2023 18:484,87133,802,58615,586,00002,289,664
3Jan 3, 2023 18:484,88845,573,43414,601,0001,042,0002,289,664
4Jan 3, 2023 18:484,91443,920,14715,725,00002,289,664
5Jan 3, 2023 18:484,95733,400,52113,880,0001,982,0002,289,664
6Jan 3, 2023 18:484,95831,876,22413,884,0001,983,0002,273,280
7Jan 3, 2023 18:484,96054,874,32214,881,000992,0002,289,664
8Jan 3, 2023 18:484,96348,212,13513,896,0001,985,0002,289,664
9Jan 3, 2023 18:484,97237,204,81013,922,0001,988,0002,277,376
10Jan 3, 2023 18:485,12889,783,96016,410,81202,297,856
11Jan 3, 2023 18:485,14883,731,90616,473,46202,301,952
12Jan 3, 2023 18:485,17382,291,17416,553,29502,301,952