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 listFeb 27, 2024 20:40Ryan Chung Yi ShengRyan Chung Yi ShengScore: 5,480Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 27, 2024 20:405,46033,486,70416,445,0001,027,0002,281,472
2Feb 27, 2024 20:405,46141,511,68416,448,0001,028,0002,523,136
3Feb 27, 2024 20:405,46233,426,80616,451,0001,028,0002,281,472
4Feb 27, 2024 20:405,46638,592,51717,490,00002,281,472
5Feb 27, 2024 20:405,47134,942,83916,478,0001,029,0002,281,472
6Feb 27, 2024 20:405,47441,764,58717,517,00002,400,256
7Feb 27, 2024 20:405,48042,363,44116,504,0001,031,0002,400,256
8Feb 27, 2024 20:405,48141,437,58817,539,00002,281,472
9Feb 27, 2024 20:405,52246,055,02115,707,0001,963,0002,396,160
10Feb 27, 2024 20:405,66074,480,74018,113,53102,293,760
11Feb 27, 2024 20:405,66482,499,90718,125,22502,297,856
12Feb 27, 2024 20:405,69176,157,30518,211,23902,301,952