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 listMay 14, 2021 21:04alex3dalex3dScore: 4,749Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2021 21:044,7172,803,126,56915,095,00002,523,136
2May 14, 2021 21:044,7194,337,232,81415,102,00002,514,944
3May 14, 2021 21:044,732142,631,37014,132,0001,009,0002,449,408
4May 14, 2021 21:044,7352,843,176,90514,069,0001,082,0002,523,136
5May 14, 2021 21:044,7351,126,401,53015,152,00002,523,136
6May 14, 2021 21:044,740943,396,04815,167,00002,523,136
7May 14, 2021 21:044,7493,609,009,05415,198,00002,514,944
8May 14, 2021 21:044,7656,936,756,06515,249,00002,523,136
9May 14, 2021 21:044,7801,475,859,38514,277,0001,019,0002,527,232
10May 14, 2021 21:045,4389,647,521,87817,401,53802,273,280
11May 14, 2021 21:045,460287,812,26717,472,73102,281,472
12May 14, 2021 21:045,4741,916,008,49617,516,43202,281,472