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 17:11Sergey StreminSergey StreminScore: 5,779Success
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 17:105,73335,713,69518,345,00002,367,488
2May 17, 2021 17:105,74442,637,53216,339,0002,042,0002,375,680
3May 17, 2021 17:105,75342,682,59918,408,00002,371,584
4May 17, 2021 17:105,75835,499,77817,403,0001,023,0002,277,376
5May 17, 2021 17:115,75845,913,69818,424,00002,367,488
6May 17, 2021 17:115,75943,067,69815,359,0003,071,0002,363,392
7May 17, 2021 17:115,76144,626,46017,410,0001,024,0002,277,376
8May 17, 2021 17:105,76741,992,07418,455,00002,371,584
9May 17, 2021 17:115,77045,748,30317,438,0001,025,0002,375,680
10May 17, 2021 17:105,77133,231,33017,441,0001,025,0002,371,584
11May 17, 2021 17:105,77445,413,61417,450,0001,026,0002,277,376
12May 17, 2021 17:115,77744,180,34516,432,0002,054,0002,363,392
13May 17, 2021 17:105,77939,956,73818,492,00002,281,472
14May 17, 2021 17:115,78046,846,11016,442,0002,055,0002,371,584
15May 17, 2021 17:115,78734,644,81618,517,00002,371,584
16May 17, 2021 17:115,79347,017,34017,507,0001,029,0002,375,680
17May 17, 2021 17:105,79439,605,79917,511,0001,030,0002,277,376
18May 17, 2021 17:115,80036,500,04318,561,00002,367,488
19May 17, 2021 17:105,97880,348,27319,130,47702,240,512
20May 17, 2021 17:105,982106,044,36219,143,93502,244,608
21May 17, 2021 17:115,98789,105,80519,159,22202,240,512
22May 17, 2021 17:115,98774,656,51819,159,15602,240,512
23May 17, 2021 17:106,02088,843,20819,264,29402,224,128
24May 17, 2021 17:116,05867,760,29019,385,64302,244,608