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 3, 2023 20:49Jo SeatonJo SeatonError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 20:4700000Error: expected "978625 ", got "978613 "
2Jul 3, 2023 20:495,26439,564,11216,846,0000290,816
3Jul 3, 2023 20:495,27042,882,08616,863,0000290,816
4Jul 3, 2023 20:495,27247,800,56514,886,0001,984,000167,936
5Jul 3, 2023 20:495,30241,963,63215,969,000998,0002,392,064
6Jul 3, 2023 20:495,30834,396,20215,988,000999,0002,387,968
7Jul 3, 2023 20:495,31939,607,85015,019,0002,002,0002,265,088
8Jul 3, 2023 20:495,32943,379,44515,046,0002,006,0002,269,184
9Jul 3, 2023 20:495,33231,117,65915,054,0002,007,0002,527,232
10Jul 3, 2023 20:495,34344,537,27315,088,0002,011,0002,383,872
11Jul 3, 2023 20:495,48978,326,79117,563,22302,244,608
12Jul 3, 2023 20:495,49787,614,64017,591,96802,281,472
13Jul 3, 2023 20:495,524106,003,27917,678,30302,281,472