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 18, 2024 09:20Joad NacerJoad NacerScore: 4,983Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 09:204,95942,553,90214,878,000991,0002,265,088
2Apr 18, 2024 09:204,96049,714,17114,880,000992,0002,531,328
3Apr 18, 2024 09:204,96144,969,54614,883,000992,0002,289,664
4Apr 18, 2024 09:204,96245,899,45013,894,0001,984,0002,289,664
5Apr 18, 2024 09:204,96745,509,36413,907,0001,986,0002,289,664
6Apr 18, 2024 09:204,96932,343,04414,908,000993,0002,269,184
7Apr 18, 2024 09:204,98330,963,21713,951,0001,993,0002,277,376
8Apr 18, 2024 09:204,98833,483,13814,964,000997,0002,273,280
9Apr 18, 2024 09:204,99136,485,78013,975,0001,996,0002,355,200
10Apr 18, 2024 09:205,03879,782,58716,120,58502,306,048
11Apr 18, 2024 09:205,08275,718,03316,262,76502,179,072
12Apr 18, 2024 09:205,11675,040,33416,372,32802,301,952