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 22, 2021 18:51Sergey StreminSergey StreminScore: 5,326Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2021 18:515,2843,049,121,66914,921,0001,989,0002,281,472
2May 22, 2021 18:515,2933,045,115,47715,942,000996,0002,277,376
3May 22, 2021 18:515,3058,041,953,84914,980,0001,997,0002,273,280
4May 22, 2021 18:515,3146,038,708,99516,005,0001,000,0002,277,376
5May 22, 2021 18:515,3198,038,623,15815,020,0002,002,0002,273,280
6May 22, 2021 18:515,32132,627,33216,027,0001,001,0002,289,664
7May 22, 2021 18:515,3235,041,389,20616,032,0001,002,0002,277,376
8May 22, 2021 18:515,3269,038,139,77515,039,0002,005,0002,535,424
9May 22, 2021 18:515,3556,043,715,86815,121,0002,016,0002,277,376
10May 22, 2021 18:515,4905,069,972,52017,567,84902,285,568
11May 22, 2021 18:515,4931,075,139,55217,576,70302,293,760
12May 22, 2021 18:515,5093,071,547,27017,627,29102,289,664
13May 22, 2021 18:515,5136,089,398,50117,640,35902,289,664
14May 22, 2021 18:515,5402,075,571,77917,726,88702,297,856
15May 22, 2021 18:515,63668,617,79118,034,65702,244,608