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 listJul 28, 2024 08:40BenBenScore: 4,560Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2024 08:404,54236,545,03014,534,00002,387,968
2Jul 28, 2024 08:404,54334,099,46813,499,0001,038,0002,265,088
3Jul 28, 2024 08:404,55339,807,29713,528,0001,040,0002,387,968
4Jul 28, 2024 08:404,55331,109,65813,530,0001,040,0002,510,848
5Jul 28, 2024 08:404,55731,348,64014,581,00002,379,776
6Jul 28, 2024 08:404,55940,143,06814,590,00002,265,088
7Jul 28, 2024 08:404,56030,710,61813,550,0001,042,0002,265,088
8Jul 28, 2024 08:404,57036,930,38513,580,0001,044,0002,265,088
9Jul 28, 2024 08:404,57529,264,17113,595,0001,045,0002,392,064
10Jul 28, 2024 08:404,77685,861,19115,283,25002,281,472
11Jul 28, 2024 08:404,80761,500,48215,382,20102,285,568
12Jul 28, 2024 08:404,84473,228,47715,500,56702,281,472