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 11, 2024 17:38Drew GarciaDrew GarciaScore: 5,388Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 17:385,34240,053,25816,088,0001,005,0002,269,184
2Apr 11, 2024 17:385,34336,182,37515,086,0002,011,0002,269,184
3Apr 11, 2024 17:385,34533,058,24116,097,0001,006,0002,400,256
4Apr 11, 2024 17:385,35333,187,43816,122,0001,007,0002,269,184
5Apr 11, 2024 17:385,36739,073,60416,164,0001,010,0002,269,184
6Apr 11, 2024 17:385,36844,970,57414,147,0003,031,0002,269,184
7Apr 11, 2024 17:385,38843,914,16714,200,0003,043,0002,400,256
8Apr 11, 2024 17:385,39641,255,38316,251,0001,015,0002,269,184
9Apr 11, 2024 17:385,40248,326,24616,270,0001,016,0002,269,184
10Apr 11, 2024 17:385,77478,245,24518,477,96402,297,856
11Apr 11, 2024 17:385,79083,995,80118,528,17302,301,952
12Apr 11, 2024 17:385,80893,081,09318,585,66002,293,760