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:03Franek KortaFranek KortaScore: 4,884Success
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:034,84336,264,20514,463,0001,033,0002,531,328
2Sep 3, 2022 22:034,86731,134,60713,499,0002,076,0002,531,328
3Sep 3, 2022 22:034,87131,256,37113,510,0002,078,0002,531,328
4Sep 3, 2022 22:034,87532,047,27115,599,00002,269,184
5Sep 3, 2022 22:034,87743,300,67412,486,0003,121,0002,437,120
6Sep 3, 2022 22:034,88227,698,63714,582,0001,041,0002,269,184
7Sep 3, 2022 22:034,88441,574,22513,546,0002,084,0002,531,328
8Sep 3, 2022 22:034,88843,221,90815,642,00002,269,184
9Sep 3, 2022 22:034,90131,300,62115,683,00002,531,328
10Sep 3, 2022 22:035,01489,158,75516,044,46202,199,552
11Sep 3, 2022 22:035,01493,884,07716,045,33102,260,992
12Sep 3, 2022 22:035,017104,481,79816,055,14402,203,648