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 listApr 11, 2024 17:21Drew GarciaDrew GarciaScore: 5,179Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 17:215,14841,007,09316,474,00002,281,472
2Apr 11, 2024 17:215,15937,239,75815,478,0001,031,0002,400,256
3Apr 11, 2024 17:215,16134,635,27915,482,0001,032,0002,269,184
4Apr 11, 2024 17:215,16334,136,63715,491,0001,032,0002,269,184
5Apr 11, 2024 17:215,17235,981,56916,549,00002,269,184
6Apr 11, 2024 17:215,17943,032,91315,537,0001,035,0002,269,184
7Apr 11, 2024 17:215,17944,301,97515,538,0001,035,0002,269,184
8Apr 11, 2024 17:215,18235,067,64316,583,00002,408,448
9Apr 11, 2024 17:215,19037,753,44215,571,0001,038,0002,404,352
10Apr 11, 2024 17:215,51781,106,42217,653,16502,285,568
11Apr 11, 2024 17:215,52298,750,73217,670,02602,301,952
12Apr 11, 2024 17:215,54199,253,81817,731,71602,301,952