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 listJul 7, 2021 19:12Yuriy LyfenkoYuriy LyfenkoScore: 5,254Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2021 19:125,169546,330,75215,507,0001,033,0002,297,856
2Jul 7, 2021 19:125,172545,211,98716,549,00002,285,568
3Jul 7, 2021 19:125,189544,506,67015,568,0001,037,0002,285,568
4Jul 7, 2021 19:125,243542,273,93015,792,000987,0002,285,568
5Jul 7, 2021 19:125,246543,691,59015,801,000987,0002,285,568
6Jul 7, 2021 19:125,247544,737,51714,815,0001,975,0002,293,760
7Jul 7, 2021 19:125,254546,142,86214,835,0001,978,0002,289,664
8Jul 7, 2021 19:125,254544,188,17215,824,000989,0002,285,568
9Jul 7, 2021 19:125,268543,720,19415,865,000991,0002,285,568
10Jul 7, 2021 19:125,346570,526,69917,108,01402,252,800
11Jul 7, 2021 19:125,363580,744,30017,162,62902,252,800
12Jul 7, 2021 19:125,375575,659,19017,199,92502,252,800