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:46Jack FrigaardJack FrigaardScore: 5,476Success
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:465,43641,260,13315,349,0002,046,0002,269,184
2Jan 2, 2023 14:465,44539,945,16116,399,0001,024,0002,523,136
3Jan 2, 2023 14:465,45434,263,35817,453,00002,371,584
4Jan 2, 2023 14:465,46040,327,91217,472,00002,523,136
5Jan 2, 2023 14:465,46940,125,32216,472,0001,029,0002,285,568
6Jan 2, 2023 14:465,47441,793,41816,486,0001,030,0002,285,568
7Jan 2, 2023 14:465,47641,855,85315,463,0002,061,0002,277,376
8Jan 2, 2023 14:465,47734,504,69416,496,0001,031,0002,273,280
9Jan 2, 2023 14:465,48444,021,85916,518,0001,032,0002,285,568
10Jan 2, 2023 14:465,67183,956,32518,145,97402,252,800
11Jan 2, 2023 14:465,67885,503,97918,169,98502,297,856
12Jan 2, 2023 14:465,70180,833,79118,242,49602,297,856