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 14, 2021 20:26alex3dalex3dScore: 4,824Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2021 20:264,77036,011,30114,248,0001,017,0002,387,968
2May 14, 2021 20:264,78244,538,27312,433,0002,869,0002,519,040
3May 14, 2021 20:264,78334,723,68414,287,0001,020,0002,387,968
4May 14, 2021 20:264,79131,938,00013,288,0002,044,0002,387,968
5May 14, 2021 20:264,79331,925,67014,317,0001,022,0002,387,968
6May 14, 2021 20:264,79436,662,03115,340,00002,519,040
7May 14, 2021 20:264,80132,399,53813,315,0002,048,0002,519,040
8May 14, 2021 20:264,80343,521,53015,370,00002,383,872
9May 14, 2021 20:264,80536,419,29415,375,00002,387,968
10May 14, 2021 20:264,81238,029,81715,398,00002,519,040
11May 14, 2021 20:264,81342,740,63315,402,00002,383,872
12May 14, 2021 20:264,82133,655,19715,426,00002,387,968
13May 14, 2021 20:264,82432,770,40614,407,0001,029,0002,519,040
14May 14, 2021 20:264,83033,533,94714,425,0001,030,0002,392,064
15May 14, 2021 20:264,83130,042,65215,458,00002,519,040
16May 14, 2021 20:264,83732,389,86413,414,0002,063,0002,519,040
17May 14, 2021 20:264,83831,889,55614,448,0001,032,0002,498,560
18May 14, 2021 20:264,84338,714,38215,499,00002,383,872
19May 14, 2021 20:265,06883,127,24116,217,88602,277,376
20May 14, 2021 20:265,07373,501,82416,232,86302,277,376
21May 14, 2021 20:265,09166,046,15216,290,46002,273,280
22May 14, 2021 20:265,09482,670,83916,300,97802,273,280
23May 14, 2021 20:265,10688,448,94116,339,70802,277,376
24May 14, 2021 20:265,13772,156,38416,437,96102,277,376