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 16:35Joad NacerJoad NacerScore: 5,297Success
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 16:355,26946,602,29916,862,00002,383,872
2Apr 17, 2024 16:355,27441,705,60614,891,0001,985,0002,289,664
3Apr 17, 2024 16:355,27634,118,80814,896,0001,986,0002,265,088
4Apr 17, 2024 16:355,27643,906,88114,898,0001,986,0002,289,664
5Apr 17, 2024 16:355,28839,612,62215,928,000995,0002,273,280
6Apr 17, 2024 16:355,29139,588,26314,940,0001,992,0002,289,664
7Apr 17, 2024 16:355,29745,102,12714,955,0001,994,0002,269,184
8Apr 17, 2024 16:355,29939,738,81715,960,000997,0002,289,664
9Apr 17, 2024 16:355,31640,869,04015,011,0002,001,0002,265,088
10Apr 17, 2024 16:355,51179,503,07517,634,74202,301,952
11Apr 17, 2024 16:355,522103,579,43817,670,51402,297,856
12Apr 17, 2024 16:355,55078,746,74817,760,48802,301,952