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 listSep 3, 2022 22:10Franek KortaFranek KortaScore: 5,038Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2022 22:105,00433,296,85914,012,0002,001,0002,269,184
2Sep 3, 2022 22:105,00530,957,61415,015,0001,001,0002,531,328
3Sep 3, 2022 22:105,00735,479,20015,022,0001,001,0002,428,928
4Sep 3, 2022 22:105,00843,820,07014,024,0002,003,0002,531,328
5Sep 3, 2022 22:105,01831,721,17315,054,0001,003,0002,269,184
6Sep 3, 2022 22:105,03037,587,16514,085,0002,012,0002,531,328
7Sep 3, 2022 22:105,03838,897,32014,108,0002,015,0002,531,328
8Sep 3, 2022 22:105,05337,009,80015,160,0001,010,0002,269,184
9Sep 3, 2022 22:105,05437,894,20114,153,0002,021,0002,437,120
10Sep 3, 2022 22:105,06663,646,97916,210,15302,187,264
11Sep 3, 2022 22:105,09485,487,11716,299,26502,203,648
12Sep 3, 2022 22:105,112103,316,73216,357,64102,187,264