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 listApr 17, 2024 03:11Joad NacerJoad NacerScore: 5,377Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 03:115,33436,535,36415,061,0002,008,0002,273,280
2Apr 17, 2024 03:115,33732,613,13915,068,0002,009,0002,281,472
3Apr 17, 2024 03:115,33840,280,20215,072,0002,009,0002,289,664
4Apr 17, 2024 03:115,34542,142,48515,093,0002,012,0002,265,088
5Apr 17, 2024 03:115,35040,596,42515,105,0002,014,0002,289,664
6Apr 17, 2024 03:115,35437,885,66315,118,0002,015,0002,289,664
7Apr 17, 2024 03:115,35539,697,08316,129,0001,008,0002,265,088
8Apr 17, 2024 03:115,36140,072,50815,136,0002,018,0002,269,184
9Apr 17, 2024 03:115,36342,447,31215,144,0002,019,0002,289,664
10Apr 17, 2024 03:115,36739,589,07916,165,0001,010,0002,289,664
11Apr 17, 2024 03:115,36940,375,33315,161,0002,021,0002,289,664
12Apr 17, 2024 03:115,37638,361,28916,192,0001,012,0002,273,280
13Apr 17, 2024 03:115,37740,032,24315,182,0002,024,0002,285,568
14Apr 17, 2024 03:115,37839,308,22515,184,0002,024,0002,289,664
15Apr 17, 2024 03:115,37939,836,51915,187,0002,025,0002,527,232
16Apr 17, 2024 03:115,39135,027,78315,222,0002,029,0002,273,280
17Apr 17, 2024 03:115,39344,179,13415,226,0002,030,0002,289,664
18Apr 17, 2024 03:115,41435,341,19915,288,0002,038,0002,289,664
19Apr 17, 2024 03:115,60589,009,87717,936,74402,179,072
20Apr 17, 2024 03:115,62988,396,83218,014,15002,301,952
21Apr 17, 2024 03:115,63371,123,54618,026,48102,301,952
22Apr 17, 2024 03:115,63466,706,90518,029,12802,297,856
23Apr 17, 2024 03:115,64290,384,80218,055,65802,293,760
24Apr 17, 2024 03:115,64280,459,69418,054,22602,174,976