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: 4,878Success
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:104,86238,339,01113,485,0002,074,0002,424,832
2Sep 3, 2022 22:104,86932,090,10315,580,00002,531,328
3Sep 3, 2022 22:104,87235,272,25615,591,00002,433,024
4Sep 3, 2022 22:104,87629,247,83614,562,0001,040,0002,428,928
5Sep 3, 2022 22:104,87639,157,10615,604,00002,437,120
6Sep 3, 2022 22:104,87735,426,56314,567,0001,040,0002,433,024
7Sep 3, 2022 22:104,87844,022,64314,570,0001,040,0002,269,184
8Sep 3, 2022 22:104,87931,117,31414,572,0001,040,0002,265,088
9Sep 3, 2022 22:104,88148,480,01315,620,00002,428,928
10Sep 3, 2022 22:104,994107,730,63215,979,35302,260,992
11Sep 3, 2022 22:105,04382,889,38116,136,70402,191,360
12Sep 3, 2022 22:105,05561,816,76616,176,19102,191,360