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 28, 2021 07:09Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2021 07:1100000Wrong answer: expected "977432 ", got "537 15352 977432 "
2May 28, 2021 07:095,02633,274,09214,074,0002,010,0002,387,968
3May 28, 2021 07:095,02834,206,55515,083,0001,005,0002,269,184
4May 28, 2021 07:095,04633,257,37614,128,0002,018,0002,265,088
5May 28, 2021 07:095,05149,522,94115,154,0001,010,0002,265,088
6May 28, 2021 07:095,05850,451,23514,162,0002,023,0002,396,160
7May 28, 2021 07:095,07843,868,22914,217,0002,031,0002,392,064
8May 28, 2021 07:095,08436,142,74315,254,0001,016,0002,527,232
9May 28, 2021 07:095,08833,649,15515,266,0001,017,0002,396,160
10May 28, 2021 07:095,08936,370,19415,268,0001,017,0002,265,088
11May 28, 2021 07:095,23953,349,04216,765,32202,269,184
12May 28, 2021 07:095,26346,366,52716,842,29802,273,280
13May 28, 2021 07:095,32088,214,55717,022,46202,281,472