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 4, 2023 19:49Jo SeatonJo SeatonScore: 5,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 19:495,23731,861,81415,712,0001,047,0002,396,160
2Jul 4, 2023 19:495,26043,516,84016,832,00002,387,968
3Jul 4, 2023 19:495,27035,136,50815,872,000992,0002,265,088
4Jul 4, 2023 19:495,27135,036,19715,875,000992,0002,265,088
5Jul 4, 2023 19:495,27136,266,51315,875,000992,0002,265,088
6Jul 4, 2023 19:495,27641,836,01914,897,0001,986,0002,265,088
7Jul 4, 2023 19:495,27637,617,70015,891,000993,0002,387,968
8Jul 4, 2023 19:495,27732,411,18114,899,0001,986,0002,265,088
9Jul 4, 2023 19:495,28342,135,07415,910,000994,0002,387,968
10Jul 4, 2023 19:495,48183,358,70417,540,52702,285,568
11Jul 4, 2023 19:495,49887,272,13017,593,81002,285,568
12Jul 4, 2023 19:495,51180,255,46017,634,17802,277,376