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 2, 2024 22:48Drew GarciaDrew GarciaScore: 5,639Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 2, 2024 22:485,60143,494,43817,922,00002,281,472
2Apr 2, 2024 22:485,62244,195,93814,992,0002,998,0002,277,376
3Apr 2, 2024 22:485,62446,312,50315,999,0001,999,0002,396,160
4Apr 2, 2024 22:485,62633,600,17315,002,0003,000,0002,281,472
5Apr 2, 2024 22:485,63335,588,87816,024,0002,003,0002,277,376
6Apr 2, 2024 22:485,63847,214,24917,038,0001,002,0002,281,472
7Apr 2, 2024 22:485,63947,031,58017,042,0001,002,0002,281,472
8Apr 2, 2024 22:485,64342,845,62616,050,0002,006,0002,281,472
9Apr 2, 2024 22:485,64644,857,34215,057,0003,011,0002,281,472
10Apr 2, 2024 22:485,86194,540,89318,755,67402,306,048
11Apr 2, 2024 22:485,86185,035,43118,756,78402,306,048
12Apr 2, 2024 22:485,88565,611,95018,833,01502,301,952