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 20, 2023 22:22gchebanovgchebanovScore: 5,454Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 22:225,40738,042,57415,268,0002,035,0002,387,968
2Jul 20, 2023 22:225,41942,675,16416,322,0001,020,0002,392,064
3Jul 20, 2023 22:225,42334,741,98717,355,00002,265,088
4Jul 20, 2023 22:225,43036,932,72217,376,00002,265,088
5Jul 20, 2023 22:225,43449,231,02717,390,00002,379,776
6Jul 20, 2023 22:225,44039,736,87417,407,00002,392,064
7Jul 20, 2023 22:225,45433,268,39516,426,0001,026,0002,265,088
8Jul 20, 2023 22:225,45642,023,21117,460,00002,265,088
9Jul 20, 2023 22:225,46439,181,72817,484,00002,392,064
10Jul 20, 2023 22:225,63958,897,08518,046,15802,273,280
11Jul 20, 2023 22:225,64876,543,80418,073,63602,277,376
12Jul 20, 2023 22:225,66681,307,89818,131,52202,285,568