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 17:04Yuriy LyfenkoYuriy LyfenkoScore: 5,429Success
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 17:045,39836,017,53716,257,0001,016,0002,265,088
2May 27, 2021 17:045,39939,658,70516,262,0001,016,0002,387,968
3May 27, 2021 17:065,39935,400,89015,245,0002,032,0002,396,160
4May 27, 2021 17:065,39934,515,31117,278,00002,523,136
5May 27, 2021 17:045,40046,830,46716,263,0001,016,0002,392,064
6May 27, 2021 17:065,40345,828,70415,256,0002,034,0002,400,256
7May 27, 2021 17:045,40339,794,61317,291,00002,265,088
8May 27, 2021 17:065,40846,050,90615,270,0002,036,0002,510,848
9May 27, 2021 17:065,41638,313,92916,311,0001,019,0002,269,184
10May 27, 2021 17:045,42350,505,64816,332,0001,020,0002,392,064
11May 27, 2021 17:045,42741,881,14715,324,0002,043,0002,265,088
12May 27, 2021 17:065,42846,543,78917,371,00002,265,088
13May 27, 2021 17:065,42941,448,38017,373,00002,396,160
14May 27, 2021 17:045,44145,465,25517,410,00002,527,232
15May 27, 2021 17:065,44633,254,55317,428,00002,396,160
16May 27, 2021 17:065,44743,095,26417,431,00002,482,176
17May 27, 2021 17:045,44838,409,94016,409,0001,025,0002,265,088
18May 27, 2021 17:045,49037,563,70717,569,00002,269,184
19May 27, 2021 17:045,56890,291,73917,818,61802,269,184
20May 27, 2021 17:045,60843,523,69617,944,02602,285,568
21May 27, 2021 17:065,61751,788,36517,973,44602,281,472
22May 27, 2021 17:065,62043,898,24917,982,75502,277,376
23May 27, 2021 17:045,71848,302,92918,297,32602,277,376
24May 27, 2021 17:065,963106,450,23019,082,10102,273,280