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 4, 2023 19:48Jo SeatonJo SeatonScore: 5,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 19:485,27434,179,24615,884,000992,0002,383,872
2Jul 4, 2023 19:485,27744,434,02714,899,0001,986,0002,387,968
3Jul 4, 2023 19:485,27936,259,08114,907,0001,987,0002,265,088
4Jul 4, 2023 19:485,28247,959,55316,901,00002,392,064
5Jul 4, 2023 19:485,28434,422,81814,921,0001,989,0002,265,088
6Jul 4, 2023 19:485,30043,825,35214,966,0001,995,0002,265,088
7Jul 4, 2023 19:485,30643,812,69614,982,0001,997,0002,387,968
8Jul 4, 2023 19:485,31150,124,57715,996,000999,0002,265,088
9Jul 4, 2023 19:485,32641,726,61315,039,0002,005,0002,387,968
10Jul 4, 2023 19:485,50988,663,84117,630,31502,281,472
11Jul 4, 2023 19:485,51180,319,76817,635,73802,277,376
12Jul 4, 2023 19:485,52987,885,25517,691,51102,285,568