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 14:41Jack FrigaardJack FrigaardScore: 5,970Success
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 14:415,92848,066,16316,972,0001,996,0002,285,568
2Jan 2, 2023 14:415,93842,074,03517,002,0002,000,0002,527,232
3Jan 2, 2023 14:415,95244,198,89917,041,0002,004,0002,285,568
4Jan 2, 2023 14:415,95646,452,83217,052,0002,006,0002,273,280
5Jan 2, 2023 14:415,96337,107,72718,078,0001,004,0002,285,568
6Jan 2, 2023 14:415,96836,766,24317,086,0002,010,0002,273,280
7Jan 2, 2023 14:415,97042,035,79518,099,0001,005,0002,285,568
8Jan 2, 2023 14:415,98744,119,41518,150,0001,008,0002,285,568
9Jan 2, 2023 14:416,00047,349,09517,179,0002,021,0002,285,568
10Jan 2, 2023 14:416,19389,080,54519,817,28502,297,856
11Jan 2, 2023 14:416,19995,493,20119,835,55802,297,856
12Jan 2, 2023 14:416,22294,403,99319,909,35302,301,952