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 22:02Jack FrigaardJack FrigaardScore: 4,852Success
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 22:024,78843,841,34814,302,0001,021,0002,269,184
2Jan 2, 2023 22:024,80833,527,82114,360,0001,025,0002,285,568
3Jan 2, 2023 22:024,81631,047,32813,356,0002,054,0002,285,568
4Jan 2, 2023 22:024,82842,895,55413,391,0002,060,0002,285,568
5Jan 2, 2023 22:024,83131,271,28514,428,0001,030,0002,285,568
6Jan 2, 2023 22:024,84337,650,69714,466,0001,033,0002,527,232
7Jan 2, 2023 22:024,85239,122,63214,490,0001,035,0002,285,568
8Jan 2, 2023 22:024,86732,867,58414,537,0001,038,0002,285,568
9Jan 2, 2023 22:024,87342,124,80414,553,0001,039,0002,285,568
10Jan 2, 2023 22:025,05171,364,76716,164,34002,297,856
11Jan 2, 2023 22:025,05882,831,76216,184,71802,297,856
12Jan 2, 2023 22:025,07682,361,74116,242,30202,301,952