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 listMay 16, 2021 16:00Yuriy LyfenkoYuriy LyfenkoScore: 5,470Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2021 16:005,43337,642,46816,364,0001,022,0002,519,040
2May 16, 2021 16:005,43939,336,27715,358,0002,047,0002,387,968
3May 16, 2021 16:005,44038,803,54717,408,00002,396,160
4May 16, 2021 16:005,44243,707,25416,389,0001,024,0002,519,040
5May 16, 2021 16:005,44338,315,97516,392,0001,024,0002,519,040
6May 16, 2021 16:005,44338,157,32115,368,0002,049,0002,519,040
7May 16, 2021 16:005,44651,327,29616,403,0001,025,0002,519,040
8May 16, 2021 16:005,44943,811,48217,438,00002,519,040
9May 16, 2021 16:005,45136,230,49017,442,00002,506,752
10May 16, 2021 16:005,46341,335,55417,480,00002,519,040
11May 16, 2021 16:005,46333,820,64217,480,00002,387,968
12May 16, 2021 16:005,46938,550,27316,473,0001,029,0002,392,064
13May 16, 2021 16:005,47033,748,22917,504,00002,519,040
14May 16, 2021 16:005,47538,355,03815,458,0002,061,0002,523,136
15May 16, 2021 16:005,47639,613,20917,522,00002,523,136
16May 16, 2021 16:005,47840,484,89315,466,0002,062,0002,396,160
17May 16, 2021 16:005,48146,747,79317,538,00002,392,064
18May 16, 2021 16:005,48539,748,88617,553,00002,519,040
19May 16, 2021 16:005,67069,780,84818,145,42802,277,376
20May 16, 2021 16:005,72187,236,45818,306,54502,285,568
21May 16, 2021 16:005,72867,588,41518,330,82202,277,376
22May 16, 2021 16:005,72984,511,90618,332,27202,285,568
23May 16, 2021 16:005,74783,545,54118,389,97502,289,664
24May 16, 2021 16:005,76580,173,50618,449,08602,277,376