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 listApr 2, 2024 22:57Drew GarciaDrew GarciaScore: 5,728Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 2, 2024 22:575,63144,568,19616,018,0002,002,0002,281,472
2Apr 2, 2024 22:575,63946,839,34116,041,0002,005,0002,281,472
3Apr 2, 2024 22:575,65949,505,43615,090,0003,018,0002,289,664
4Apr 2, 2024 22:575,66344,857,46015,100,0003,020,0002,281,472
5Apr 2, 2024 22:575,67145,355,74516,130,0002,016,0002,269,184
6Apr 2, 2024 22:575,67340,240,34517,145,0001,008,0002,277,376
7Apr 2, 2024 22:575,72846,920,94915,275,0003,055,0002,289,664
8Apr 2, 2024 22:575,73534,084,38516,314,0002,039,0002,281,472
9Apr 2, 2024 22:575,76445,707,40017,422,0001,024,0002,281,472
10Apr 2, 2024 22:575,955103,682,65519,056,39902,183,168
11Apr 2, 2024 22:575,96572,123,93019,087,51002,179,072
12Apr 2, 2024 22:575,97392,520,21619,112,06102,183,168