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 listFeb 22, 2024 12:55Huy Duc LeHuy Duc LeScore: 5,190Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 12:555,14936,033,11614,417,0002,059,0002,281,472
2Feb 22, 2024 12:555,16242,509,64515,487,0001,032,0002,281,472
3Feb 22, 2024 12:555,16333,635,78215,488,0001,032,0002,281,472
4Feb 22, 2024 12:555,16335,981,22214,457,0002,065,0002,285,568
5Feb 22, 2024 12:555,17339,551,71116,555,00002,277,376
6Feb 22, 2024 12:555,18738,448,56115,561,0001,037,0002,371,584
7Feb 22, 2024 12:555,19032,290,14015,570,0001,038,0002,281,472
8Feb 22, 2024 12:555,19143,071,26815,573,0001,038,0002,281,472
9Feb 22, 2024 12:555,19648,146,07815,587,0001,039,0002,523,136
10Feb 22, 2024 12:555,42196,200,43917,346,70702,297,856
11Feb 22, 2024 12:555,43491,993,04217,387,52802,297,856
12Feb 22, 2024 12:555,44286,617,54617,414,09502,297,856