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 17:49Joad NacerJoad NacerScore: 5,176Success
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 17:495,12836,609,77114,357,0002,051,0002,523,136
2Apr 17, 2024 17:495,13833,061,95214,387,0002,055,0002,273,280
3Apr 17, 2024 17:495,15137,561,65915,453,0001,030,0002,523,136
4Apr 17, 2024 17:495,15337,700,63115,460,0001,030,0002,269,184
5Apr 17, 2024 17:495,15538,173,67715,465,0001,031,0002,289,664
6Apr 17, 2024 17:495,16037,155,27916,513,00002,289,664
7Apr 17, 2024 17:495,16339,580,73515,488,0001,032,0002,289,664
8Apr 17, 2024 17:495,16641,324,26215,498,0001,033,0002,289,664
9Apr 17, 2024 17:495,16834,449,43815,505,0001,033,0002,289,664
10Apr 17, 2024 17:495,17041,074,18315,510,0001,034,0002,527,232
11Apr 17, 2024 17:495,17139,123,74815,513,0001,034,0002,289,664
12Apr 17, 2024 17:495,17233,462,09215,517,0001,034,0002,269,184
13Apr 17, 2024 17:495,17640,073,19915,527,0001,035,0002,289,664
14Apr 17, 2024 17:495,17832,301,42615,533,0001,035,0002,273,280
15Apr 17, 2024 17:495,17936,294,41315,538,0001,035,0002,289,664
16Apr 17, 2024 17:495,18344,034,32615,551,0001,036,0002,523,136
17Apr 17, 2024 17:495,20234,234,88015,607,0001,040,0002,289,664
18Apr 17, 2024 17:495,21235,280,80015,635,0001,042,0002,285,568
19Apr 17, 2024 17:495,35362,816,51817,129,58402,174,976
20Apr 17, 2024 17:495,35787,193,27217,141,48102,174,976
21Apr 17, 2024 17:495,37273,552,42017,189,95102,301,952
22Apr 17, 2024 17:495,38597,474,43217,232,14002,297,856
23Apr 17, 2024 17:495,38579,488,15817,233,48602,306,048
24Apr 17, 2024 17:495,39179,363,48017,250,22702,301,952