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 listOct 29, 2024 11:46Jonathan HallströmJonathan HallströmScore: 7,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 29, 2024 11:467,23349,731,73621,135,0002,012,0002,289,664
2Oct 29, 2024 11:467,23645,804,79721,141,0002,013,0002,289,664
3Oct 29, 2024 11:467,24344,223,19821,164,0002,015,0002,289,664
4Oct 29, 2024 11:467,24648,541,81021,170,0002,016,0002,289,664
5Oct 29, 2024 11:467,25157,235,41721,186,0002,017,0002,289,664
6Oct 29, 2024 11:467,25545,393,12722,207,0001,009,0002,531,328
7Oct 29, 2024 11:467,30052,138,00221,330,0002,031,0002,289,664
8Oct 29, 2024 11:467,30347,055,90821,337,0002,032,0002,289,664
9Oct 29, 2024 11:467,31844,466,48721,381,0002,036,0002,281,472