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 13, 2024 20:03Brian WardBrian WardScore: 5,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2024 20:035,57846,061,58816,859,000991,0002,289,664
2Apr 13, 2024 20:035,68034,393,71717,166,0001,009,0002,289,664
3Apr 13, 2024 20:035,69039,468,83016,186,0002,023,0002,289,664
4Apr 13, 2024 20:035,70841,777,54816,238,0002,029,0002,351,104
5Apr 13, 2024 20:035,72044,762,69017,287,0001,016,0002,289,664
6Apr 13, 2024 20:035,72045,837,88217,287,0001,016,0002,289,664
7Apr 13, 2024 20:035,72239,687,95316,277,0002,034,0002,289,664
8Apr 13, 2024 20:035,72739,767,73716,290,0002,036,0002,289,664
9Apr 13, 2024 20:035,74143,620,80318,372,00002,359,296
10Apr 13, 2024 20:035,86083,931,62618,752,01702,244,608
11Apr 13, 2024 20:036,00091,081,39019,201,33202,236,416
12Apr 13, 2024 20:036,00795,270,07419,222,84602,232,320