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 listNov 28, 2024 17:12Joad NacerJoad NacerScore: 4,511Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 28, 2024 17:124,46529,945,57213,267,0001,020,0002,269,184
2Nov 28, 2024 17:124,47133,568,06714,308,00002,531,328
3Nov 28, 2024 17:124,48329,111,31914,347,00002,428,928
4Nov 28, 2024 17:124,48637,609,06014,355,00002,424,832
5Nov 28, 2024 17:124,48931,471,10214,364,00002,531,328
6Nov 28, 2024 17:124,49942,712,73614,398,00002,531,328
7Nov 28, 2024 17:124,50032,598,43414,400,00002,531,328
8Nov 28, 2024 17:124,50829,357,58813,396,0001,030,0002,428,928
9Nov 28, 2024 17:124,51033,956,31214,431,00002,531,328
10Nov 28, 2024 17:124,51127,616,86114,435,00002,437,120
11Nov 28, 2024 17:124,51534,032,42614,448,00002,424,832
12Nov 28, 2024 17:124,51635,053,80314,452,00002,433,024
13Nov 28, 2024 17:124,53133,494,65314,498,00002,510,848
14Nov 28, 2024 17:124,53227,853,45914,502,00002,433,024
15Nov 28, 2024 17:124,54034,323,38114,527,00002,531,328
16Nov 28, 2024 17:124,54531,492,54814,544,00002,428,928
17Nov 28, 2024 17:124,55229,805,98513,527,0001,040,0002,437,120
18Nov 28, 2024 17:124,58728,310,67614,678,00002,428,928