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:39gchebanovgchebanovScore: 5,581Success
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:395,49947,913,86316,563,0001,035,0002,510,848
2Jun 27, 2021 22:395,52047,251,83016,625,0001,039,0002,285,568
3Jun 27, 2021 22:395,53348,542,19516,663,0001,041,0002,285,568
4Jun 27, 2021 22:395,53844,110,26516,678,0001,042,0002,506,752
5Jun 27, 2021 22:395,57844,095,17015,865,0001,983,0002,285,568
6Jun 27, 2021 22:395,58150,127,70816,866,000992,0002,285,568
7Jun 27, 2021 22:395,58145,425,42416,866,000992,0002,285,568
8Jun 27, 2021 22:395,58145,454,28116,868,000992,0002,285,568
9Jun 27, 2021 22:395,58449,433,19915,885,0001,985,0002,510,848
10Jun 27, 2021 22:395,71093,033,16118,271,25802,260,992
11Jun 27, 2021 22:395,71896,265,33018,297,54602,256,896
12Jun 27, 2021 22:395,74789,343,00418,389,14202,244,608