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 21:25Joad NacerJoad NacerScore: 4,963Success
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 21:254,91431,876,33714,676,0001,048,0002,527,232
2Apr 17, 2024 21:254,91644,124,00815,732,00002,523,136
3Apr 17, 2024 21:254,94844,569,31513,854,0001,979,0002,281,472
4Apr 17, 2024 21:254,95236,733,67913,865,0001,980,0002,269,184
5Apr 17, 2024 21:254,95432,685,41413,873,0001,981,0002,289,664
6Apr 17, 2024 21:254,95746,814,37913,879,0001,982,0002,269,184
7Apr 17, 2024 21:254,95745,025,93014,806,0001,057,0002,289,664
8Apr 17, 2024 21:254,95830,926,75215,865,00002,289,664
9Apr 17, 2024 21:254,95833,667,43914,875,000991,0002,289,664
10Apr 17, 2024 21:254,95934,061,07214,879,000991,0002,273,280
11Apr 17, 2024 21:254,96139,307,53714,883,000992,0002,527,232
12Apr 17, 2024 21:254,96243,194,79913,894,0001,984,0002,289,664
13Apr 17, 2024 21:254,96343,780,78913,898,0001,985,0002,277,376
14Apr 17, 2024 21:254,96732,759,60313,908,0001,986,0002,289,664
15Apr 17, 2024 21:254,96940,541,44213,913,0001,987,0002,269,184
16Apr 17, 2024 21:254,97333,122,48214,919,000994,0002,289,664
17Apr 17, 2024 21:254,98840,865,93413,965,0001,995,0002,289,664
18Apr 17, 2024 21:255,01332,632,25514,038,0002,005,0002,289,664
19Apr 17, 2024 21:255,15660,509,94816,499,30602,306,048
20Apr 17, 2024 21:255,16795,660,50316,535,05702,301,952
21Apr 17, 2024 21:255,17583,536,38616,559,64502,179,072
22Apr 17, 2024 21:255,18483,525,51816,589,50802,179,072
23Apr 17, 2024 21:255,217111,356,57816,695,99102,301,952
24Apr 17, 2024 21:255,23483,105,78516,750,21102,293,760