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 listJun 2, 2021 17:57Yuriy 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
1Jun 2, 2021 17:5700000Error: expected "973566 ", got "496126 "
2Jun 2, 2021 17:575,11033,572,74215,331,0001,022,0002,265,088
3Jun 2, 2021 17:575,11136,986,71115,332,0001,022,0002,392,064
4Jun 2, 2021 17:575,11130,149,34416,355,00002,392,064
5Jun 2, 2021 17:575,11330,580,36716,362,00002,265,088
6Jun 2, 2021 17:575,11943,397,02715,358,0001,023,0002,265,088
7Jun 2, 2021 17:575,13040,866,31416,416,00002,400,256
8Jun 2, 2021 17:575,15241,651,11815,456,0001,030,0002,265,088
9Jun 2, 2021 17:575,15536,784,19916,497,00002,265,088
10Jun 2, 2021 17:575,16133,498,58715,482,0001,032,0002,527,232
11Jun 2, 2021 17:575,28273,068,79416,902,05602,277,376
12Jun 2, 2021 17:575,29772,413,39516,949,78902,285,568
13Jun 2, 2021 17:575,32556,160,64117,039,83502,273,280