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 listMay 17, 2021 23:38Yuriy LyfenkoYuriy LyfenkoScore: 5,447Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 23:385,41385,716,11116,359,000962,0002,265,088
2May 17, 2021 23:385,415747,030,43915,290,0002,038,0002,396,160
3May 17, 2021 23:385,4201,841,123,87516,323,0001,020,0002,523,136
4May 17, 2021 23:385,4332,604,557,02216,420,000965,0002,523,136
5May 17, 2021 23:385,435625,866,17016,427,000966,0002,523,136
6May 17, 2021 23:385,441579,787,45615,478,0001,934,0002,265,088
7May 17, 2021 23:385,4471,367,610,54815,495,0001,936,0002,523,136
8May 17, 2021 23:385,4832,305,001,26917,547,00002,523,136
9May 17, 2021 23:385,4871,716,613,17617,558,00002,260,992
10May 17, 2021 23:385,609698,291,72917,948,28902,273,280
11May 17, 2021 23:385,6132,881,699,35317,960,61302,277,376
12May 17, 2021 23:385,6141,331,127,64817,965,56502,281,472