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 listJan 18, 2024 13:10AnSaAnSaScore: 5,584Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2024 13:105,52948,857,77317,693,00002,273,280
2Jan 18, 2024 13:105,53539,302,94716,670,0001,041,0002,273,280
3Jan 18, 2024 13:105,53543,357,48916,671,0001,041,0002,289,664
4Jan 18, 2024 13:105,57036,183,39415,844,0001,980,0002,265,088
5Jan 18, 2024 13:105,57941,870,71416,862,000991,0002,265,088
6Jan 18, 2024 13:105,58343,560,82715,881,0001,985,0002,289,664
7Jan 18, 2024 13:105,58445,303,02416,878,000992,0002,289,664
8Jan 18, 2024 13:105,58745,649,00616,884,000993,0002,363,392
9Jan 18, 2024 13:105,59148,026,00017,890,00002,289,664
10Jan 18, 2024 13:105,72979,340,15518,332,02602,301,952
11Jan 18, 2024 13:105,73561,984,68718,353,47202,285,568
12Jan 18, 2024 13:105,75380,948,34618,409,85902,293,760