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 listMay 8, 2024 21:30Joad NacerJoad NacerScore: 4,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 21:304,81635,942,15514,385,0001,027,0002,289,664
2May 8, 2024 21:304,81734,832,66214,387,0001,027,0002,269,184
3May 8, 2024 21:304,81935,827,80514,393,0001,028,0002,289,664
4May 8, 2024 21:304,82531,479,32515,441,00002,289,664
5May 8, 2024 21:304,84032,884,20014,455,0001,032,0002,289,664
6May 8, 2024 21:304,84342,127,78714,464,0001,033,0002,289,664
7May 8, 2024 21:304,85031,808,62814,486,0001,034,0002,387,968
8May 8, 2024 21:304,85033,071,34014,487,0001,034,0002,289,664
9May 8, 2024 21:304,86330,614,55715,560,00002,265,088
10May 8, 2024 21:305,05592,970,84816,175,42702,297,856
11May 8, 2024 21:305,08576,378,00416,272,14202,306,048
12May 8, 2024 21:305,09567,525,07616,303,76602,293,760