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 listOct 29, 2024 12:00Jonathan HallströmJonathan HallströmScore: 5,513Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 29, 2024 12:005,47141,560,98117,508,00002,289,664
2Oct 29, 2024 12:005,48744,950,24116,525,0001,032,0002,289,664
3Oct 29, 2024 12:005,49333,382,15516,543,0001,033,0002,289,664
4Oct 29, 2024 12:005,50447,997,91016,577,0001,036,0002,359,296
5Oct 29, 2024 12:005,51350,094,33215,568,0002,075,0002,531,328
6Oct 29, 2024 12:005,52034,590,34517,664,00002,289,664
7Oct 29, 2024 12:005,52334,464,58716,634,0001,039,0002,289,664
8Oct 29, 2024 12:005,57746,267,32816,855,000991,0002,277,376
9Oct 29, 2024 12:005,57846,676,95415,868,0001,983,0002,289,664