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 31, 2024 12:12BenBenScore: 5,227Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2024 12:125,18244,407,92416,581,00002,498,560
2Jul 31, 2024 12:125,20444,685,56916,654,00002,277,376
3Jul 31, 2024 12:125,20935,423,19516,669,00002,502,656
4Jul 31, 2024 12:125,21039,137,07616,673,00002,494,464
5Jul 31, 2024 12:125,21741,334,80816,694,00002,494,464
6Jul 31, 2024 12:125,22230,481,56916,710,00002,494,464
7Jul 31, 2024 12:125,22738,340,15416,726,00002,490,368
8Jul 31, 2024 12:125,27044,498,06616,863,00002,277,376
9Jul 31, 2024 12:125,27841,756,97015,897,000993,0002,277,376
10Jul 31, 2024 12:125,46896,328,06417,497,68402,256,896
11Jul 31, 2024 12:125,47162,658,52817,506,51602,236,416
12Jul 31, 2024 12:125,51064,054,88217,631,11102,371,584