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:08Franek KortaFranek KortaScore: 5,350Success
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:085,29429,879,76715,946,000996,0002,428,928
2Sep 3, 2022 22:085,30136,362,59215,965,000997,0002,531,328
3Sep 3, 2022 22:085,31937,021,20515,018,0002,002,0002,269,184
4Sep 3, 2022 22:085,31936,937,56415,019,0002,002,0002,531,328
5Sep 3, 2022 22:085,32438,034,32116,036,0001,002,0002,531,328
6Sep 3, 2022 22:085,33232,989,79416,060,0001,003,0002,531,328
7Sep 3, 2022 22:085,35034,155,94916,112,0001,007,0002,433,024
8Sep 3, 2022 22:085,35540,901,37514,113,0003,024,0002,531,328
9Sep 3, 2022 22:085,35838,471,83516,136,0001,008,0002,428,928
10Sep 3, 2022 22:085,76585,806,83318,446,41502,203,648
11Sep 3, 2022 22:085,77275,462,91418,470,75102,207,744
12Sep 3, 2022 22:085,80874,628,98018,585,67602,195,456