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 16:20Yuriy 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 16:1900000exit with code 1: alg:0 fwd:128 mode:0 time:14899
2May 28, 2021 15:355,05836,127,12514,162,0002,023,0002,265,088
3May 28, 2021 15:355,07434,299,39914,208,0002,029,0002,527,232
4May 28, 2021 15:355,08845,620,83714,245,0002,035,0002,392,064
5May 28, 2021 15:355,10532,485,26114,295,0002,042,0002,387,968
6May 28, 2021 15:355,11045,878,33815,331,0001,022,0002,392,064
7May 28, 2021 15:355,11144,971,00814,312,0002,044,0002,265,088
8May 28, 2021 15:355,11930,991,07516,382,00002,392,064
9May 28, 2021 15:355,12543,098,48016,400,00002,265,088
10May 28, 2021 15:355,13442,443,01715,404,0001,026,0002,400,256
11May 28, 2021 16:205,27538,036,71116,879,00002,265,088
12May 28, 2021 16:205,27644,845,36315,889,000993,0002,387,968
13May 28, 2021 16:205,27637,816,65414,896,0001,986,0002,265,088
14May 28, 2021 16:205,27633,241,32015,890,000993,0002,265,088
15May 28, 2021 16:205,27635,632,80114,898,0001,986,0002,265,088
16May 28, 2021 16:205,28142,117,03715,904,000994,0002,265,088
17May 28, 2021 16:205,28342,943,78714,918,0001,989,0002,265,088
18May 28, 2021 15:355,29995,682,27216,956,28702,285,568
19May 28, 2021 16:205,30143,976,17614,967,0001,995,0002,527,232
20May 28, 2021 15:355,30148,229,75516,962,93902,281,472
21May 28, 2021 16:205,30847,291,51715,988,000999,0002,265,088
22May 28, 2021 15:355,31782,064,79717,015,53602,269,184
23May 28, 2021 16:205,46189,561,38417,476,68502,269,184
24May 28, 2021 16:205,46348,132,81617,481,65502,273,280
25May 28, 2021 16:205,58659,300,68317,873,63002,277,376