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 21:14Jo SeatonJo SeatonScore: 5,471Success
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 21:145,32831,460,97116,048,0001,003,000282,624
2Jul 3, 2023 21:145,41836,695,79617,337,0000282,624
3Jul 3, 2023 21:145,43241,677,63116,359,0001,022,0002,265,088
4Jul 3, 2023 21:145,45046,764,65216,415,0001,025,000430,080
5Jul 3, 2023 21:145,45441,753,95616,428,0001,026,000167,936
6Jul 3, 2023 21:145,45738,388,39517,463,0000393,216
7Jul 3, 2023 21:145,47177,525,18717,506,91502,277,376
8Jul 3, 2023 21:145,48480,522,41617,550,33102,240,512
9Jul 3, 2023 21:145,48539,884,95916,519,0001,032,000282,624
10Jul 3, 2023 21:145,49091,098,01417,568,43202,281,472
11Jul 3, 2023 21:145,49334,072,14016,545,0001,034,000430,080
12Jul 3, 2023 21:145,52332,624,41117,675,0000409,600