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 listFeb 26, 2023 00:09Andranik ChakiryanAndranik ChakiryanScore: 5,502Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2023 00:095,46444,327,32717,485,00002,342,912
2Feb 26, 2023 00:005,46744,881,00815,437,0002,058,0002,342,912
3Feb 26, 2023 00:005,46839,502,79216,470,0001,029,0002,359,296
4Feb 26, 2023 00:005,47540,203,54116,489,0001,030,0002,355,200
5Feb 26, 2023 00:005,47842,108,49716,500,0001,031,0002,342,912
6Feb 26, 2023 00:095,48036,869,91917,536,00002,342,912
7Feb 26, 2023 00:095,48636,703,13216,523,0001,032,0002,338,816
8Feb 26, 2023 00:095,48836,477,19117,561,00002,338,816
9Feb 26, 2023 00:005,49433,677,54717,580,00002,351,104
10Feb 26, 2023 00:005,49741,038,73416,555,0001,034,0002,342,912
11Feb 26, 2023 00:095,49843,749,52217,595,00002,347,008
12Feb 26, 2023 00:005,50042,437,04417,600,00002,342,912
13Feb 26, 2023 00:095,50239,087,02516,571,0001,035,0002,342,912
14Feb 26, 2023 00:095,50244,526,50317,607,00002,355,200
15Feb 26, 2023 00:005,51146,419,07617,636,00002,342,912
16Feb 26, 2023 00:005,51646,844,20517,651,00002,342,912
17Feb 26, 2023 00:005,52265,358,92017,669,16402,179,072
18Feb 26, 2023 00:095,52346,509,09317,674,00002,342,912
19Feb 26, 2023 00:005,52579,800,31917,678,98802,191,360
20Feb 26, 2023 00:095,52844,491,49416,648,0001,040,0002,355,200
21Feb 26, 2023 00:095,58590,687,12717,870,48802,187,264
22Feb 26, 2023 00:095,64167,251,37018,051,22902,179,072
23Feb 26, 2023 00:095,65484,519,77918,091,24902,191,360
24Feb 26, 2023 00:005,67179,003,42318,148,45702,183,168