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:05Franek 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 3, 2022 22:044,85337,189,62915,531,00002,428,928
2Sep 3, 2022 22:044,85834,773,56215,545,00002,437,120
3Sep 3, 2022 22:044,85931,735,57014,513,0001,036,0002,433,024
4Sep 3, 2022 22:044,88342,456,37415,625,00002,437,120
5Sep 3, 2022 22:044,88538,329,74714,591,0001,042,0002,531,328
6Sep 3, 2022 22:044,89132,041,56113,564,0002,086,0002,437,120
7Sep 3, 2022 22:044,89142,963,04515,651,00002,269,184
8Sep 3, 2022 22:044,89239,972,73015,654,00002,531,328
9Sep 3, 2022 22:044,89845,311,07515,672,00002,269,184
10Sep 3, 2022 22:046,19081,221,23219,808,77702,199,552
11Sep 3, 2022 22:046,20496,644,62019,851,76402,191,360
12Sep 3, 2022 22:046,22788,027,11319,926,84702,199,552
13Sep 3, 2022 22:056,23286,437,19319,942,13802,203,648
14Sep 3, 2022 22:056,25398,422,80820,009,71702,199,552
15Sep 3, 2022 22:056,27192,147,26220,066,84202,203,648