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 4, 2024 23:44Drew GarciaDrew GarciaScore: 5,590Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 23:445,57944,116,79215,871,0001,983,0002,293,760
2Apr 4, 2024 23:445,58035,624,45716,865,000992,0002,281,472
3Apr 4, 2024 23:445,58150,038,83615,874,0001,984,0002,273,280
4Apr 4, 2024 23:445,58143,460,81915,876,0001,984,0002,281,472
5Apr 4, 2024 23:445,58244,158,93815,879,0001,984,0002,281,472
6Apr 4, 2024 23:445,58535,125,04715,886,0001,985,0002,281,472
7Apr 4, 2024 23:445,59042,741,89916,895,000993,0002,277,376
8Apr 4, 2024 23:445,59032,929,35415,901,0001,987,0002,273,280
9Apr 4, 2024 23:445,59144,093,78915,903,0001,987,0002,289,664
10Apr 4, 2024 23:445,77881,419,64518,490,53002,199,552
11Apr 4, 2024 23:445,78799,189,62118,519,05502,179,072
12Apr 4, 2024 23:445,82171,238,55418,627,60702,174,976