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 20, 2023 19:32Andranik ChakiryanAndranik ChakiryanScore: 5,903Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2023 19:385,87947,054,44016,833,0001,980,0002,355,200
2Feb 20, 2023 19:325,87980,007,58018,813,95902,306,048
3Feb 20, 2023 19:385,88144,807,86216,838,0001,980,0002,351,104
4Feb 20, 2023 19:385,88674,603,51018,834,24302,187,264
5Feb 20, 2023 19:325,89345,679,17917,865,000992,0002,342,912
6Feb 20, 2023 19:325,89441,481,32316,875,0001,985,0002,473,984
7Feb 20, 2023 19:325,89745,525,65915,890,0002,979,0002,355,200
8Feb 20, 2023 19:325,89745,186,30916,885,0001,986,0002,342,912
9Feb 20, 2023 19:385,89745,057,84617,877,000993,0002,342,912
10Feb 20, 2023 19:385,89950,607,70417,884,000993,0002,351,104
11Feb 20, 2023 19:325,89944,869,56416,891,0001,987,0002,351,104
12Feb 20, 2023 19:385,89934,514,31918,878,00002,347,008
13Feb 20, 2023 19:385,90350,169,41017,894,000994,0002,351,104
14Feb 20, 2023 19:325,90348,355,56816,901,0001,988,0002,342,912
15Feb 20, 2023 19:325,90443,014,36617,900,000994,0002,347,008
16Feb 20, 2023 19:325,90948,186,18517,858,0001,050,0002,342,912
17Feb 20, 2023 19:325,90935,466,09217,914,000995,0002,342,912
18Feb 20, 2023 19:385,91544,477,68516,936,0001,992,0002,351,104
19Feb 20, 2023 19:385,92435,038,94617,959,000997,0002,338,816
20Feb 20, 2023 19:385,94048,962,45317,007,0002,000,0002,342,912
21Feb 20, 2023 19:385,95262,131,05019,047,11802,187,264
22Feb 20, 2023 19:385,96579,295,25219,086,66502,187,264
23Feb 20, 2023 19:326,00294,180,50219,205,76002,191,360
24Feb 20, 2023 19:326,04690,106,80919,345,96702,301,952