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 11, 2024 18:04Drew GarciaDrew GarciaScore: 5,385Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2024 18:045,34340,261,72915,088,0002,011,0002,404,352
2Apr 11, 2024 18:045,35639,050,09816,132,0001,008,0002,400,256
3Apr 11, 2024 18:045,36039,580,66116,143,0001,008,0002,523,136
4Apr 11, 2024 18:045,36746,525,73115,153,0002,020,0002,404,352
5Apr 11, 2024 18:045,36940,296,78415,159,0002,021,0002,273,280
6Apr 11, 2024 18:045,36939,503,13215,160,0002,021,0002,396,160
7Apr 11, 2024 18:045,38531,524,76414,191,0003,041,0002,404,352
8Apr 11, 2024 18:045,38932,736,92115,216,0002,028,0002,269,184
9Apr 11, 2024 18:045,39037,621,73315,219,0002,029,0002,269,184
10Apr 11, 2024 18:045,77377,893,40218,475,09402,293,760
11Apr 11, 2024 18:045,80091,673,73118,558,65202,199,552
12Apr 11, 2024 18:045,80279,754,47818,567,44002,297,856