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:25Brian WardBrian WardScore: 5,725Success
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:255,66444,296,41117,119,0001,007,0002,355,200
2Apr 13, 2024 16:255,67343,779,08717,145,0001,008,0002,289,664
3Apr 13, 2024 16:255,67841,295,76216,150,0002,018,0002,355,200
4Apr 13, 2024 16:255,68335,427,45816,166,0002,020,0002,289,664
5Apr 13, 2024 16:255,68440,888,96316,168,0002,021,0002,281,472
6Apr 13, 2024 16:255,69540,214,64817,212,0001,012,0002,359,296
7Apr 13, 2024 16:255,72541,543,20518,321,00002,289,664
8Apr 13, 2024 16:255,73848,234,95718,362,00002,469,888
9Apr 13, 2024 16:255,74449,362,71817,361,0001,021,0002,289,664
10Apr 13, 2024 16:255,89059,523,06218,846,55802,260,992
11Apr 13, 2024 16:255,94480,700,05119,020,51502,236,416
12Apr 13, 2024 16:255,94488,046,40219,020,25002,363,392