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 29, 2021 22:26Yuriy LyfenkoYuriy LyfenkoScore: 5,091Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2021 22:335,00444,134,38714,013,0002,001,0002,281,472
2May 29, 2021 22:335,01732,064,50315,052,0001,003,0002,281,472
3May 29, 2021 22:335,02638,345,70914,074,0002,010,0002,281,472
4May 29, 2021 22:335,03429,589,46115,102,0001,006,0002,404,352
5May 29, 2021 22:335,03533,409,57014,098,0002,014,0002,281,472
6May 29, 2021 22:335,03840,392,70614,107,0002,015,0002,408,448
7May 29, 2021 22:335,03836,035,14314,105,0002,015,0002,408,448
8May 29, 2021 22:335,05833,546,40814,164,0002,023,0002,281,472
9May 29, 2021 22:335,05843,124,53714,162,0002,023,0002,265,088
10May 29, 2021 22:265,06738,195,02214,187,0002,026,0002,281,472
11May 29, 2021 22:265,07332,322,24714,203,0002,029,0002,404,352
12May 29, 2021 22:265,09041,641,37414,253,0002,036,0002,408,448
13May 29, 2021 22:265,09139,363,92816,290,00002,281,472
14May 29, 2021 22:265,09838,013,60415,294,0001,019,0002,281,472
15May 29, 2021 22:265,10235,715,76016,325,00002,408,448
16May 29, 2021 22:265,10430,612,80915,312,0001,020,0002,408,448
17May 29, 2021 22:265,11233,885,69515,336,0001,022,0002,408,448
18May 29, 2021 22:265,11541,500,67416,368,00002,400,256
19May 29, 2021 22:335,19659,100,09516,628,51502,285,568
20May 29, 2021 22:335,21261,324,90516,677,63402,281,472
21May 29, 2021 22:335,23880,233,74816,760,42402,285,568
22May 29, 2021 22:265,24685,806,18316,786,09702,301,952
23May 29, 2021 22:265,25291,974,81716,806,32602,285,568
24May 29, 2021 22:265,28888,136,10316,922,06502,281,472