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 23:00Drew GarciaDrew GarciaScore: 5,654Success
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 23:005,61539,608,95615,973,0001,996,0002,277,376
2Apr 2, 2024 23:005,61843,940,79915,979,0001,997,0002,281,472
3Apr 2, 2024 23:005,62646,212,22415,004,0003,000,0002,269,184
4Apr 2, 2024 23:005,63445,604,62116,027,0002,003,0002,277,376
5Apr 2, 2024 23:005,64648,286,06015,056,0003,011,0002,281,472
6Apr 2, 2024 23:005,64743,992,23416,062,0002,007,0002,281,472
7Apr 2, 2024 23:005,65443,553,11316,084,0002,010,0002,281,472
8Apr 2, 2024 23:005,66142,357,54415,097,0003,019,0002,277,376
9Apr 2, 2024 23:005,67449,164,39916,140,0002,017,0002,281,472
10Apr 2, 2024 23:005,92586,771,16018,959,50902,306,048
11Apr 2, 2024 23:005,95289,997,11919,045,67702,306,048
12Apr 2, 2024 23:005,98886,025,30019,161,51602,256,896