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 7, 2021 19:17Yuriy LyfenkoYuriy LyfenkoScore: 5,244Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2021 19:175,183543,186,75615,549,0001,036,0002,285,568
2Jul 7, 2021 19:175,184549,543,64215,552,0001,036,0002,293,760
3Jul 7, 2021 19:175,193541,332,14816,617,00002,285,568
4Jul 7, 2021 19:175,198542,922,99615,595,0001,039,0002,285,568
5Jul 7, 2021 19:175,243549,287,39615,791,000986,0002,293,760
6Jul 7, 2021 19:175,243546,992,25615,791,000986,0002,396,160
7Jul 7, 2021 19:175,244548,596,81715,795,000987,0002,285,568
8Jul 7, 2021 19:175,245549,239,91714,809,0001,974,0002,285,568
9Jul 7, 2021 19:175,252542,537,76514,829,0001,977,0002,285,568
10Jul 7, 2021 19:175,346579,839,76617,106,98302,252,800
11Jul 7, 2021 19:175,362576,270,20917,156,84102,297,856
12Jul 7, 2021 19:175,384573,286,33017,227,90602,252,800