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 27, 2024 11:02Joad NacerJoad NacerScore: 4,503Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2024 11:024,46931,509,96013,279,0001,021,0002,433,024
2Jul 27, 2024 11:024,48330,608,77414,344,00002,514,944
3Jul 27, 2024 11:024,48631,082,92314,354,00002,424,832
4Jul 27, 2024 11:024,48633,624,68114,356,00002,437,120
5Jul 27, 2024 11:024,49536,131,00214,384,00002,273,280
6Jul 27, 2024 11:024,49736,731,78614,389,00002,437,120
7Jul 27, 2024 11:024,50336,514,60214,411,00002,433,024
8Jul 27, 2024 11:024,50435,409,83713,383,0001,029,0002,535,424
9Jul 27, 2024 11:024,50533,184,92013,386,0001,029,0002,433,024
10Jul 27, 2024 11:024,73055,929,37115,135,85502,183,168
11Jul 27, 2024 11:024,73286,822,62815,142,09502,191,360
12Jul 27, 2024 11:024,73852,164,72215,161,11802,256,896