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 listJan 2, 2023 16:21Jack FrigaardJack FrigaardScore: 5,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:215,20042,636,58215,600,0001,040,0002,527,232
2Jan 2, 2023 16:215,23649,054,97115,709,0001,047,0002,285,568
3Jan 2, 2023 16:215,26843,235,66214,876,0001,983,0002,273,280
4Jan 2, 2023 16:215,27038,773,27914,881,0001,984,0002,285,568
5Jan 2, 2023 16:215,27143,817,54715,875,000992,0002,285,568
6Jan 2, 2023 16:215,27143,816,86514,884,0001,984,0002,514,944
7Jan 2, 2023 16:215,27345,027,39615,881,000992,0002,285,568
8Jan 2, 2023 16:215,27533,713,86315,888,000993,0002,269,184
9Jan 2, 2023 16:215,27742,277,66514,900,0001,986,0002,269,184
10Jan 2, 2023 16:215,50474,218,81517,614,28302,297,856
11Jan 2, 2023 16:215,54066,105,03817,727,44602,310,144
12Jan 2, 2023 16:215,60681,904,30417,938,56702,297,856