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 17, 2021 21:16Yuriy LyfenkoYuriy LyfenkoScore: 5,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 21:165,2341,676,312,66815,763,000985,0002,260,992
2May 17, 2021 21:165,2381,621,352,48315,776,000986,0002,260,992
3May 17, 2021 21:165,2482,967,036,28415,805,000987,0002,523,136
4May 17, 2021 21:165,2522,155,841,57015,819,000988,0002,265,088
5May 17, 2021 21:165,2531,059,400,01915,823,000988,0002,519,040
6May 17, 2021 21:165,2551,568,917,06514,838,0001,978,0002,265,088
7May 17, 2021 21:165,2572,600,698,62214,843,0001,979,0002,523,136
8May 17, 2021 21:165,2612,564,653,07315,844,000990,0002,260,992
9May 17, 2021 21:165,2612,712,898,08815,846,000990,0002,519,040
10May 17, 2021 21:165,2641,960,543,76315,854,000990,0002,396,160
11May 17, 2021 21:165,2651,802,306,02516,848,00002,265,088
12May 17, 2021 21:165,269601,979,81914,877,0001,983,0002,387,968
13May 17, 2021 21:165,2731,405,182,18415,881,000992,0002,260,992
14May 17, 2021 21:165,2742,969,767,47815,884,000992,0002,265,088
15May 17, 2021 21:165,2811,707,507,85715,906,000994,0002,260,992
16May 17, 2021 21:165,2831,902,448,08715,911,000994,0002,387,968
17May 17, 2021 21:165,287935,320,07815,861,0001,057,0002,260,992
18May 17, 2021 21:165,29693,269,61914,953,0001,993,0002,383,872
19May 17, 2021 21:165,3811,061,082,01117,220,57502,273,280
20May 17, 2021 21:165,391394,026,79417,252,65502,273,280
21May 17, 2021 21:165,4151,013,235,81217,328,27702,285,568
22May 17, 2021 21:165,4312,878,179,41017,380,40802,281,472
23May 17, 2021 21:165,4422,551,062,76917,414,91202,285,568
24May 17, 2021 21:165,4522,349,353,71417,445,94102,285,568