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:48Jo SeatonJo SeatonScore: 5,475Success
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:485,37440,957,99016,185,0001,011,000278,528
2Jul 3, 2023 21:485,38553,575,81017,233,0000282,624
3Jul 3, 2023 21:485,42041,889,32516,325,0001,020,000278,528
4Jul 3, 2023 21:485,42141,202,24117,346,0000430,080
5Jul 3, 2023 21:485,44244,539,93516,390,0001,024,0002,494,464
6Jul 3, 2023 21:485,47259,985,52817,508,82502,285,568
7Jul 3, 2023 21:485,47542,268,41616,546,000973,000286,720
8Jul 3, 2023 21:485,51077,883,12517,631,97502,277,376
9Jul 3, 2023 21:485,53866,987,98517,720,25902,277,376
10Jul 3, 2023 21:485,56446,276,33315,826,0001,978,0002,367,488
11Jul 3, 2023 21:485,58444,105,34916,877,000992,0002,379,776
12Jul 3, 2023 21:485,62339,429,98415,996,0001,999,0002,265,088