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 19:33Brian WardBrian WardScore: 5,708Success
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 19:335,67133,527,73817,138,0001,008,0002,355,200
2Apr 13, 2024 19:335,67337,537,03316,138,0002,017,0002,289,664
3Apr 13, 2024 19:335,67536,183,64417,152,0001,008,0002,355,200
4Apr 13, 2024 19:335,67644,926,01016,145,0002,018,0002,289,664
5Apr 13, 2024 19:335,69942,333,43216,212,0002,026,0002,359,296
6Apr 13, 2024 19:335,70734,467,50717,248,0001,014,0002,289,664
7Apr 13, 2024 19:335,70843,630,03817,251,0001,014,0002,351,104
8Apr 13, 2024 19:335,71442,280,09917,269,0001,015,0002,363,392
9Apr 13, 2024 19:335,71747,010,38717,279,0001,016,0002,289,664
10Apr 13, 2024 19:335,90294,776,72118,887,98202,260,992
11Apr 13, 2024 19:335,91794,837,61318,932,81302,236,416
12Apr 13, 2024 19:335,93593,842,30618,992,99302,224,128