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 listJun 2, 2021 16:28Yuriy 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
1Jun 2, 2021 16:3400000Error: expected "977844 ", got "0 15816 977844 "
2Jun 2, 2021 16:285,01332,746,30414,038,0002,005,0002,383,872
3Jun 2, 2021 16:285,02237,092,56615,067,0001,004,0002,265,088
4Jun 2, 2021 16:285,02435,179,58415,073,0001,004,0002,265,088
5Jun 2, 2021 16:285,02433,510,53014,069,0002,009,0002,265,088
6Jun 2, 2021 16:285,02639,465,45415,078,0001,005,0002,379,776
7Jun 2, 2021 16:285,02733,164,28414,075,0002,010,0002,265,088
8Jun 2, 2021 16:285,03344,870,63215,098,0001,006,0002,383,872
9Jun 2, 2021 16:285,03433,383,75215,104,0001,006,0002,269,184
10Jun 2, 2021 16:285,03533,900,55014,099,0002,014,0002,396,160
11Jun 2, 2021 16:285,03833,605,43715,116,0001,007,0002,396,160
12Jun 2, 2021 16:285,05042,759,93714,141,0002,020,0002,383,872
13Jun 2, 2021 16:285,05844,992,41115,176,0001,011,0002,506,752
14Jun 2, 2021 16:285,05932,541,12214,167,0002,023,0002,506,752
15Jun 2, 2021 16:285,06130,463,65314,171,0002,024,0002,396,160
16Jun 2, 2021 16:285,06940,276,19114,195,0002,027,0002,265,088
17Jun 2, 2021 16:285,07332,840,65615,220,0001,014,0002,265,088
18Jun 2, 2021 16:285,07934,275,64315,239,0001,015,0002,265,088
19Jun 2, 2021 16:285,08433,206,34414,235,0002,033,0002,265,088
20Jun 2, 2021 16:285,24981,908,76016,795,64402,285,568
21Jun 2, 2021 16:285,24957,077,70316,796,59002,244,608
22Jun 2, 2021 16:285,25080,677,64416,798,44402,265,088
23Jun 2, 2021 16:285,27587,800,78216,879,10402,273,280
24Jun 2, 2021 16:285,29878,410,28316,954,82702,273,280
25Jun 2, 2021 16:285,30892,921,11416,985,97102,281,472