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 listJan 2, 2023 14:45Jack FrigaardJack FrigaardScore: 5,480Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 14:455,43646,476,82815,349,0002,046,0002,277,376
2Jan 2, 2023 14:455,43644,816,77615,350,0002,046,0002,531,328
3Jan 2, 2023 14:455,44339,408,59516,393,0001,024,0002,285,568
4Jan 2, 2023 14:455,46543,424,22915,431,0002,057,0002,285,568
5Jan 2, 2023 14:455,47634,491,82116,493,0001,030,0002,269,184
6Jan 2, 2023 14:455,47842,348,09516,500,0001,031,0002,285,568
7Jan 2, 2023 14:455,48042,433,88716,506,0001,031,0002,269,184
8Jan 2, 2023 14:455,49439,640,98417,582,00002,285,568
9Jan 2, 2023 14:455,49635,631,92216,553,0001,034,0002,277,376
10Jan 2, 2023 14:455,64799,861,51118,071,39602,306,048
11Jan 2, 2023 14:455,65983,746,72318,110,28902,306,048
12Jan 2, 2023 14:455,72184,338,03718,307,89502,285,568