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 listApr 17, 2024 18:03Joad NacerJoad NacerScore: 4,951Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 18:034,87536,501,70814,560,0001,040,0002,273,280
2Apr 17, 2024 18:034,88743,352,41614,596,0001,042,0002,289,664
3Apr 17, 2024 18:034,89342,478,05514,614,0001,043,0002,273,280
4Apr 17, 2024 18:034,89644,582,65815,668,00002,289,664
5Apr 17, 2024 18:034,89831,690,52114,628,0001,044,0002,289,664
6Apr 17, 2024 18:034,90446,068,93114,646,0001,046,0002,519,040
7Apr 17, 2024 18:034,90733,114,58315,703,00002,289,664
8Apr 17, 2024 18:034,90931,770,51014,662,0001,047,0002,285,568
9Apr 17, 2024 18:034,91035,747,80814,665,0001,047,0002,269,184
10Apr 17, 2024 18:034,91140,585,89214,668,0001,047,0002,289,664
11Apr 17, 2024 18:034,91641,625,51614,684,0001,048,0002,269,184
12Apr 17, 2024 18:034,94841,930,16915,835,00002,269,184
13Apr 17, 2024 18:034,95141,957,74414,852,000990,0002,273,280
14Apr 17, 2024 18:034,95847,047,92714,873,000991,0002,289,664
15Apr 17, 2024 18:034,95845,202,74614,875,000991,0002,289,664
16Apr 17, 2024 18:034,95848,184,52713,882,0001,983,0002,289,664
17Apr 17, 2024 18:034,95844,771,69214,874,000991,0002,289,664
18Apr 17, 2024 18:034,96040,738,77514,880,000992,0002,527,232
19Apr 17, 2024 18:035,11490,215,20516,364,84702,301,952
20Apr 17, 2024 18:035,11486,145,49616,364,26802,179,072
21Apr 17, 2024 18:035,12588,876,40116,399,99902,301,952
22Apr 17, 2024 18:035,13856,377,98016,441,87302,289,664
23Apr 17, 2024 18:035,142105,701,60616,454,89502,297,856
24Apr 17, 2024 18:035,14574,991,47516,463,57802,306,048