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 3, 2024 02:35Drew GarciaDrew GarciaScore: 5,584Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 3, 2024 02:355,53134,023,06816,659,0001,041,0002,277,376
2Apr 3, 2024 02:355,53349,144,98916,665,0001,041,0002,281,472
3Apr 3, 2024 02:355,58050,606,68415,873,0001,984,0002,277,376
4Apr 3, 2024 02:355,58145,415,56315,875,0001,984,0002,281,472
5Apr 3, 2024 02:355,58243,579,78615,879,0001,984,0002,281,472
6Apr 3, 2024 02:355,58345,086,51614,889,0002,977,0002,289,664
7Apr 3, 2024 02:355,58444,036,18315,885,0001,985,0002,281,472
8Apr 3, 2024 02:355,58746,686,53215,893,0001,986,0002,281,472
9Apr 3, 2024 02:355,60043,356,31916,925,000995,0002,281,472
10Apr 3, 2024 02:355,81197,713,60218,595,48302,179,072
11Apr 3, 2024 02:355,82085,267,44018,623,77602,174,976
12Apr 3, 2024 02:355,85386,265,03118,730,84002,179,072