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 listMay 23, 2021 10:40Andrey TsvetkovAndrey TsvetkovScore: 5,737Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2021 10:405,68942,060,89516,182,0002,022,0002,326,528
2May 23, 2021 10:405,70339,695,19715,207,0003,041,0002,523,136
3May 23, 2021 10:405,70341,006,09415,208,0003,041,0002,519,040
4May 23, 2021 10:405,70439,072,31316,224,0002,028,0002,330,624
5May 23, 2021 10:405,70535,813,48215,214,0003,042,0002,531,328
6May 23, 2021 10:405,70633,570,53515,216,0003,043,0002,535,424
7May 23, 2021 10:405,73142,380,99515,284,0003,056,0002,334,720
8May 23, 2021 10:405,73769,612,37218,358,65902,244,608
9May 23, 2021 10:405,74440,345,50616,340,0002,042,0002,334,720
10May 23, 2021 10:405,74639,654,76517,366,0001,021,0002,523,136
11May 23, 2021 10:405,75375,654,31418,409,56602,240,512
12May 23, 2021 10:405,77489,914,07918,476,22902,228,224
13May 23, 2021 10:405,81595,310,25118,607,43002,240,512
14May 23, 2021 10:405,88289,482,48118,821,41502,236,416
15May 23, 2021 10:405,92186,975,94718,948,69002,236,416