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 21, 2023 16:35gchebanovgchebanovScore: 5,586Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 16:355,50747,038,18816,585,0001,036,0002,412,544
2Jul 21, 2023 16:355,52441,034,99016,639,0001,039,0002,285,568
3Jul 21, 2023 16:355,52644,059,97016,643,0001,040,0002,404,352
4Jul 21, 2023 16:355,53041,161,63816,656,0001,041,0002,285,568
5Jul 21, 2023 16:355,54032,613,49416,686,0001,042,0002,408,448
6Jul 21, 2023 16:355,58344,390,85516,872,000992,0002,285,568
7Jul 21, 2023 16:355,58638,665,98115,890,0001,986,0002,285,568
8Jul 21, 2023 16:355,58745,449,82516,884,000993,0002,285,568
9Jul 21, 2023 16:355,58739,912,53116,884,000993,0002,408,448
10Jul 21, 2023 16:355,73370,041,15718,346,64502,289,664
11Jul 21, 2023 16:355,76082,600,30418,431,23402,293,760
12Jul 21, 2023 16:355,762100,454,14818,439,45302,297,856