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 20, 2024 17:14Joad NacerJoad NacerScore: 4,895Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 17:134,85231,422,67514,492,0001,035,0002,289,664
2Apr 20, 2024 17:134,85837,888,85815,544,00002,289,664
3Apr 20, 2024 17:144,86432,584,23515,565,00002,289,664
4Apr 20, 2024 17:144,86536,117,51614,531,0001,037,0002,289,664
5Apr 20, 2024 17:144,87336,611,38515,595,00002,289,664
6Apr 20, 2024 17:134,87637,283,97014,563,0001,040,0002,269,184
7Apr 20, 2024 17:134,87643,783,41314,562,0001,040,0002,289,664
8Apr 20, 2024 17:144,87849,283,44014,568,0001,040,0002,289,664
9Apr 20, 2024 17:134,88032,653,41315,615,00002,523,136
10Apr 20, 2024 17:134,88132,897,65914,579,0001,041,0002,531,328
11Apr 20, 2024 17:134,88935,735,24014,603,0001,043,0002,289,664
12Apr 20, 2024 17:144,89430,839,54714,618,0001,044,0002,289,664
13Apr 20, 2024 17:144,89542,624,70614,621,0001,044,0002,289,664
14Apr 20, 2024 17:134,89734,905,58514,626,0001,044,0002,527,232
15Apr 20, 2024 17:144,90332,685,05915,690,00002,273,280
16Apr 20, 2024 17:134,90844,490,96314,660,0001,047,0002,289,664
17Apr 20, 2024 17:144,93242,176,32613,809,0001,972,0002,289,664
18Apr 20, 2024 17:144,96341,938,57513,898,0001,985,0002,289,664
19Apr 20, 2024 17:145,12385,591,85516,394,18002,301,952
20Apr 20, 2024 17:145,13084,170,13016,416,64002,293,760
21Apr 20, 2024 17:145,13279,060,80316,422,70702,179,072
22Apr 20, 2024 17:135,14686,692,91016,466,03902,297,856
23Apr 20, 2024 17:135,15676,621,98716,499,82002,301,952
24Apr 20, 2024 17:135,17072,309,84316,542,50202,174,976