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 11, 2021 19:11Yuriy LyfenkoYuriy LyfenkoScore: 5,455Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2021 19:115,40347,667,58814,238,0003,051,0002,392,064
2May 11, 2021 19:115,40736,426,95717,303,00002,519,040
3May 11, 2021 19:115,41547,663,19717,327,00002,396,160
4May 11, 2021 19:115,41732,794,54916,316,0001,019,0002,396,160
5May 11, 2021 19:115,42142,633,51916,326,0001,020,0002,392,064
6May 11, 2021 19:115,42339,365,00317,353,00002,523,136
7May 11, 2021 19:115,42543,352,37117,359,00002,387,968
8May 11, 2021 19:115,43540,969,80916,368,0001,023,0002,502,656
9May 11, 2021 19:115,43938,986,25814,333,0003,071,0002,519,040
10May 11, 2021 19:115,44634,792,25316,402,0001,025,0002,519,040
11May 11, 2021 19:115,45231,348,15617,446,00002,519,040
12May 11, 2021 19:115,45445,450,80517,453,00002,387,968
13May 11, 2021 19:115,45542,758,30516,430,0001,026,0002,519,040
14May 11, 2021 19:115,45538,340,63917,457,00002,506,752
15May 11, 2021 19:115,46038,040,38217,471,00002,396,160
16May 11, 2021 19:115,46541,074,57016,461,0001,028,0002,387,968
17May 11, 2021 19:115,48738,987,97716,525,0001,032,0002,519,040
18May 11, 2021 19:115,48936,291,45116,532,0001,033,0002,498,560
19May 11, 2021 19:115,75159,623,29618,402,88302,273,280
20May 11, 2021 19:115,79373,227,46018,536,13702,285,568
21May 11, 2021 19:115,79376,855,41218,537,56402,273,280
22May 11, 2021 19:115,80766,279,77318,583,50402,281,472
23May 11, 2021 19:115,81162,924,67118,594,61602,269,184
24May 11, 2021 19:115,82893,225,01718,649,02802,273,280