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 listDec 14, 2024 14:19MatthiasMatthiasScore: 4,846Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 14:214,75834,790,55213,196,0002,030,0002,265,088
2Dec 14, 2024 14:214,76531,248,94313,215,0002,033,0002,523,136
3Dec 14, 2024 14:214,78543,307,93014,291,0001,020,0002,285,568
4Dec 14, 2024 14:174,80137,385,20714,338,0001,024,0002,519,040
5Dec 14, 2024 14:174,84636,974,55514,474,0001,033,0002,519,040
6Dec 14, 2024 14:174,90241,432,15414,641,0001,045,0002,285,568
7Dec 14, 2024 14:195,61441,227,14315,969,0001,996,0002,519,040
8Dec 14, 2024 14:195,63140,922,96716,017,0002,002,0002,277,376
9Dec 14, 2024 14:195,64035,243,36016,043,0002,005,0002,510,848