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:58Joad NacerJoad NacerScore: 5,272Success
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:585,18641,108,26615,559,0001,037,0002,277,376
2Apr 17, 2024 18:585,20449,680,24915,614,0001,040,0002,289,664
3Apr 17, 2024 18:585,26449,854,13215,855,000990,0002,289,664
4Apr 17, 2024 18:585,26740,398,86214,871,0001,982,0002,289,664
5Apr 17, 2024 18:585,27035,436,59716,863,00002,273,280
6Apr 17, 2024 18:585,27246,125,48915,878,000992,0002,523,136
7Apr 17, 2024 18:585,27245,281,26415,879,000992,0002,289,664
8Apr 17, 2024 18:585,27543,197,91915,887,000992,0002,269,184
9Apr 17, 2024 18:585,27641,350,50215,889,000993,0002,289,664
10Apr 17, 2024 18:585,47579,763,87917,519,02902,179,072
11Apr 17, 2024 18:585,482112,869,82817,543,24502,301,952
12Apr 17, 2024 18:585,491102,754,49217,572,54002,297,856