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 16, 2021 17:38Mikhail DektyarevMikhail DektyarevScore: 5,079Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2021 17:385,03642,870,87515,109,0001,007,0002,519,040
2May 16, 2021 17:385,04441,185,39914,125,0002,017,0002,502,656
3May 16, 2021 17:385,04741,988,89414,131,0002,018,0002,383,872
4May 16, 2021 17:385,05441,803,31514,152,0002,021,0002,519,040
5May 16, 2021 17:385,05630,525,38615,169,0001,011,0002,392,064
6May 16, 2021 17:385,06933,741,73115,208,0001,013,0002,502,656
7May 16, 2021 17:385,07933,806,68215,239,0001,015,0002,519,040
8May 16, 2021 17:385,09136,735,85414,255,0002,036,0002,519,040
9May 16, 2021 17:385,12437,647,18816,396,00002,498,560
10May 16, 2021 17:385,30286,860,73516,967,36002,269,184
11May 16, 2021 17:385,30487,158,14416,972,91702,269,184
12May 16, 2021 17:385,31074,466,72016,991,57702,281,472