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 27, 2021 18:36Yuriy 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 27, 2021 19:0500000Wrong answer: expected "976001 ", got "538 15015 976001 "
2May 27, 2021 18:365,03548,384,34914,098,0002,014,0002,265,088
3May 27, 2021 18:345,04238,921,41515,126,0001,008,0002,396,160
4May 27, 2021 18:345,04433,647,93415,132,0001,008,0002,383,872
5May 27, 2021 18:365,04644,755,83814,129,0002,018,0002,527,232
6May 27, 2021 18:345,04832,736,10815,143,0001,009,0002,265,088
7May 27, 2021 18:345,04937,165,81315,149,0001,009,0002,265,088
8May 27, 2021 18:345,05039,360,69315,151,0001,010,0002,265,088
9May 27, 2021 18:365,05335,658,80215,160,0001,010,0002,392,064
10May 27, 2021 18:365,05433,472,76814,152,0002,021,0002,527,232
11May 27, 2021 18:345,05737,469,00915,172,0001,011,0002,265,088
12May 27, 2021 18:365,06352,497,91814,177,0002,025,0002,265,088
13May 27, 2021 18:365,06841,459,67614,192,0002,027,0002,392,064
14May 27, 2021 18:365,07044,978,13615,210,0001,014,0002,400,256
15May 27, 2021 18:365,07643,293,38915,229,0001,015,0002,396,160
16May 27, 2021 18:345,07835,969,84314,219,0002,031,0002,400,256
17May 27, 2021 18:365,08047,674,93514,225,0002,032,0002,265,088
18May 27, 2021 18:345,08637,969,86614,242,0002,034,0002,506,752
19May 27, 2021 18:345,08738,823,85315,262,0001,017,0002,265,088
20May 27, 2021 18:345,21044,147,88116,672,75702,285,568
21May 27, 2021 18:365,24095,229,11016,766,90602,277,376
22May 27, 2021 18:345,25298,924,67716,806,49002,273,280
23May 27, 2021 18:365,27240,605,83616,869,11402,285,568
24May 27, 2021 18:365,28074,315,04916,894,81402,277,376
25May 27, 2021 18:345,28183,613,19116,898,72202,277,376