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 20, 2024 15:00Joad NacerJoad NacerScore: 5,037Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 15:004,95944,454,74213,886,0001,983,0002,289,664
2Apr 20, 2024 15:004,96334,682,21114,822,0001,058,0002,289,664
3Apr 20, 2024 15:004,96641,554,10113,906,0001,986,0002,523,136
4Apr 20, 2024 15:004,98332,803,22913,952,0001,993,0002,273,280
5Apr 20, 2024 15:004,98437,126,38613,956,0001,993,0002,289,664
6Apr 20, 2024 15:004,99437,830,66413,985,0001,997,0002,289,664
7Apr 20, 2024 15:005,00534,198,62614,015,0002,002,0002,269,184
8Apr 20, 2024 15:005,00833,337,35414,021,0002,003,0002,531,328
9Apr 20, 2024 15:005,00831,256,37414,022,0002,003,0002,523,136
10Apr 20, 2024 15:005,01439,591,07215,044,0001,002,0002,273,280
11Apr 20, 2024 15:005,02337,550,03714,065,0002,009,0002,289,664
12Apr 20, 2024 15:005,03239,603,24114,089,0002,012,0002,531,328
13Apr 20, 2024 15:005,03738,858,85414,103,0002,014,0002,273,280
14Apr 20, 2024 15:005,03839,247,83514,106,0002,015,0002,289,664
15Apr 20, 2024 15:005,04333,884,58616,137,00002,273,280
16Apr 20, 2024 15:005,04647,619,97015,137,0001,009,0002,273,280
17Apr 20, 2024 15:005,04837,360,53415,143,0001,009,0002,289,664
18Apr 20, 2024 15:005,06838,061,99414,192,0002,027,0002,277,376
19Apr 20, 2024 15:005,19882,769,26216,634,65602,301,952
20Apr 20, 2024 15:005,23294,740,49616,741,39602,293,760
21Apr 20, 2024 15:005,24684,506,79516,788,76602,179,072
22Apr 20, 2024 15:005,24680,104,71516,788,64002,174,976
23Apr 20, 2024 15:005,24784,063,49216,789,47802,297,856
24Apr 20, 2024 15:005,27879,736,85316,889,53802,301,952