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 30, 2024 11:22BenBenScore: 5,574Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2024 11:225,49345,303,33716,544,0001,034,0002,375,680
2Jul 30, 2024 11:225,50831,391,55517,624,00002,265,088
3Jul 30, 2024 11:225,51134,106,68717,636,00002,379,776
4Jul 30, 2024 11:225,51744,358,02616,617,0001,038,0002,265,088
5Jul 30, 2024 11:225,51748,030,84416,617,0001,038,0002,527,232
6Jul 30, 2024 11:225,52143,403,40317,666,00002,502,656
7Jul 30, 2024 11:225,57444,102,27015,856,0001,982,0002,383,872
8Jul 30, 2024 11:225,58242,093,80615,878,0001,984,0002,367,488
9Jul 30, 2024 11:225,58345,846,47916,874,000992,0002,265,088
10Jul 30, 2024 11:225,78178,677,39318,498,05902,273,280
11Jul 30, 2024 11:225,83892,229,21818,681,37702,273,280
12Jul 30, 2024 11:225,85186,359,42118,723,62202,269,184