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 2, 2022 19:13Franek KortaFranek KortaScore: 4,892Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2022 19:134,85731,453,09313,470,0002,072,0002,269,184
2Sep 2, 2022 19:134,85936,904,42614,514,0001,036,0002,531,328
3Sep 2, 2022 19:134,86331,691,58714,524,0001,037,0002,531,328
4Sep 2, 2022 19:134,86627,670,08115,571,00002,428,928
5Sep 2, 2022 19:134,87541,412,50015,599,00002,531,328
6Sep 2, 2022 19:134,88840,416,81915,640,00002,433,024
7Sep 2, 2022 19:134,89249,552,07614,612,0001,043,0002,437,120
8Sep 2, 2022 19:134,90833,150,78015,704,00002,269,184
9Sep 2, 2022 19:134,91131,445,46113,620,0002,095,0002,437,120
10Sep 2, 2022 19:134,98898,339,88015,961,46402,195,456
11Sep 2, 2022 19:134,99582,075,69615,984,85502,191,360
12Sep 2, 2022 19:135,02262,578,02616,070,28602,199,552