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 21:15Ryan Chung Yi ShengRyan Chung Yi ShengScore: 5,468Success
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 21:155,43640,733,69616,373,0001,023,0002,400,256
2Feb 27, 2024 21:155,45642,488,74817,459,00002,400,256
3Feb 27, 2024 21:155,45736,328,46417,461,00002,281,472
4Feb 27, 2024 21:155,45739,743,80216,434,0001,027,0002,281,472
5Feb 27, 2024 21:155,45840,186,82517,467,00002,404,352
6Feb 27, 2024 21:155,46439,393,77217,485,00002,281,472
7Feb 27, 2024 21:155,46845,811,54217,496,00002,281,472
8Feb 27, 2024 21:155,47145,218,04117,508,00002,281,472
9Feb 27, 2024 21:155,47748,943,48817,525,00002,281,472
10Feb 27, 2024 21:155,65559,986,97418,096,50502,179,072
11Feb 27, 2024 21:155,66468,847,37718,125,57002,174,976
12Feb 27, 2024 21:155,66876,042,78018,137,52102,293,760