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 16:42Yuriy 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 27, 2021 16:4200000Wrong answer: expected "975882 ", got "532 14939 975882 "
2May 27, 2021 16:415,21840,801,36416,697,00002,289,664
3May 27, 2021 16:415,22138,961,38115,662,0001,044,0002,289,664
4May 27, 2021 16:415,22843,579,21716,728,00002,273,280
5May 27, 2021 16:415,23333,236,01815,701,0001,046,0002,289,664
6May 27, 2021 16:425,27050,199,16515,873,000992,0002,289,664
7May 27, 2021 16:425,27146,891,86415,875,000992,0002,289,664
8May 27, 2021 16:415,27242,690,91314,886,0001,984,0002,289,664
9May 27, 2021 16:415,27234,027,18215,877,000992,0002,277,376
10May 27, 2021 16:425,27246,728,58114,886,0001,984,0002,289,664
11May 27, 2021 16:415,27340,497,23614,888,0001,985,0002,281,472
12May 27, 2021 16:425,27447,042,84614,891,0001,985,0002,281,472
13May 27, 2021 16:425,27543,691,19914,894,0001,985,0002,281,472
14May 27, 2021 16:425,27532,013,44314,894,0001,985,0002,273,280
15May 27, 2021 16:425,28242,662,63415,907,000994,0002,289,664
16May 27, 2021 16:425,28740,407,83815,860,0001,057,0002,289,664
17May 27, 2021 16:415,28943,517,99514,933,0001,991,0002,281,472
18May 27, 2021 16:425,29834,080,66714,959,0001,994,0002,289,664
19May 27, 2021 16:415,29838,073,08214,959,0001,994,0002,281,472
20May 27, 2021 16:425,37178,002,79417,185,82602,170,880
21May 27, 2021 16:415,37277,019,68917,191,36702,297,856
22May 27, 2021 16:415,37852,291,00217,210,05002,260,992
23May 27, 2021 16:425,38856,354,04117,241,06302,297,856
24May 27, 2021 16:425,40475,383,18517,292,36902,174,976
25May 27, 2021 16:415,42467,197,06517,357,59802,285,568