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:24Jack FrigaardJack FrigaardScore: 4,836Success
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:244,78235,363,57314,282,0001,020,0002,269,184
2Jan 2, 2023 22:244,79033,140,10415,328,00002,273,280
3Jan 2, 2023 22:244,79337,253,56514,316,0001,022,0002,289,664
4Jan 2, 2023 22:244,79334,902,67214,317,0001,022,0002,285,568
5Jan 2, 2023 22:244,79531,859,50413,298,0002,045,0002,379,776
6Jan 2, 2023 22:244,80139,513,61313,316,0002,048,0002,265,088
7Jan 2, 2023 22:244,83630,086,42315,476,00002,523,136
8Jan 2, 2023 22:244,84036,263,73414,456,0001,032,0002,289,664
9Jan 2, 2023 22:244,85639,366,35514,503,0001,035,0002,289,664
10Jan 2, 2023 22:245,06883,133,09116,216,83602,301,952
11Jan 2, 2023 22:245,08691,057,42916,276,67902,297,856
12Jan 2, 2023 22:245,09099,766,21316,287,80502,174,976