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 16:11Brian WardBrian WardScore: 5,724Success
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 16:115,67346,723,13316,136,0002,017,0002,359,296
2Apr 13, 2024 16:115,67440,818,14816,141,0002,017,0002,355,200
3Apr 13, 2024 16:115,68838,209,99716,178,0002,022,0002,355,200
4Apr 13, 2024 16:115,70035,373,64416,214,0002,026,0002,351,104
5Apr 13, 2024 16:115,71141,619,65116,246,0002,030,0002,359,296
6Apr 13, 2024 16:115,71840,713,01816,265,0002,033,0002,281,472
7Apr 13, 2024 16:115,72446,017,68917,299,0001,017,0002,351,104
8Apr 13, 2024 16:115,73642,945,98917,335,0001,019,0002,289,664
9Apr 13, 2024 16:115,74238,862,70416,334,0002,041,0002,289,664
10Apr 13, 2024 16:115,90470,825,48318,892,29402,215,936
11Apr 13, 2024 16:115,93272,620,27018,981,79102,232,320
12Apr 13, 2024 16:115,94179,454,08219,011,88502,224,128