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 4, 2024 23:20Drew GarciaDrew GarciaScore: 5,585Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 23:205,53448,147,24916,667,0001,041,0002,281,472
2Apr 4, 2024 23:205,57247,171,35915,849,0001,981,0002,281,472
3Apr 4, 2024 23:205,57644,378,18516,851,000991,0002,269,184
4Apr 4, 2024 23:205,57744,228,05317,846,00002,281,472
5Apr 4, 2024 23:205,58145,708,89516,866,000992,0002,281,472
6Apr 4, 2024 23:205,58543,523,42015,887,0001,985,0002,281,472
7Apr 4, 2024 23:205,58545,560,58614,894,0002,978,0002,281,472
8Apr 4, 2024 23:205,58645,696,13714,895,0002,979,0002,281,472
9Apr 4, 2024 23:205,58741,798,71816,884,000993,0002,281,472
10Apr 4, 2024 23:205,77193,164,44318,468,18602,179,072
11Apr 4, 2024 23:205,79188,047,01618,529,95202,179,072
12Apr 4, 2024 23:205,80481,658,36318,571,43802,306,048