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 27, 2021 22:44gchebanovgchebanovScore: 5,351Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 22:445,31941,432,13115,018,0002,002,0002,265,088
2Jun 27, 2021 22:445,32245,998,06515,026,0002,003,0002,392,064
3Jun 27, 2021 22:445,33147,201,08816,057,0001,003,0002,265,088
4Jun 27, 2021 22:445,33635,158,82216,072,0001,004,0002,527,232
5Jun 27, 2021 22:445,33848,480,35416,077,0001,004,0002,265,088
6Jun 27, 2021 22:445,34250,499,50815,084,0002,011,0002,396,160
7Jun 27, 2021 22:445,35136,444,40616,115,0001,007,0002,392,064
8Jun 27, 2021 22:445,37446,220,27516,186,0001,011,0002,392,064
9Jun 27, 2021 22:445,37436,790,62016,187,0001,011,0002,265,088
10Jun 27, 2021 22:445,56681,817,28517,810,79702,277,376
11Jun 27, 2021 22:445,57180,323,44617,828,44702,281,472
12Jun 27, 2021 22:445,57381,533,41117,832,36402,285,568