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:22Drew GarciaDrew GarciaScore: 5,462Success
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:225,43434,983,81116,366,0001,022,0002,269,184
2Apr 11, 2024 17:225,44036,211,33216,385,0001,024,0002,269,184
3Apr 11, 2024 17:225,44440,021,07017,420,00002,400,256
4Apr 11, 2024 17:225,45335,702,89416,423,0001,026,0002,269,184
5Apr 11, 2024 17:225,46134,911,92916,447,0001,027,0002,510,848
6Apr 11, 2024 17:225,46247,059,57615,423,0002,056,0002,269,184
7Apr 11, 2024 17:225,46240,658,99017,479,00002,396,160
8Apr 11, 2024 17:225,46738,571,28015,436,0002,058,0002,269,184
9Apr 11, 2024 17:225,47940,681,32315,471,0002,062,0002,396,160
10Apr 11, 2024 17:225,827103,522,29318,646,35302,174,976
11Apr 11, 2024 17:225,84888,096,32118,712,69602,297,856
12Apr 11, 2024 17:225,89476,995,55418,861,25602,297,856