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 listJul 3, 2023 21:00Jo SeatonJo SeatonScore: 5,283Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 21:005,19342,859,43116,618,0000290,816
2Jul 3, 2023 21:005,19744,187,53215,590,0001,039,000290,816
3Jul 3, 2023 21:005,27433,961,77215,884,000992,0002,265,088
4Jul 3, 2023 21:005,27537,611,57215,888,000993,0002,387,968
5Jul 3, 2023 21:005,27643,973,46514,898,0001,986,0002,392,064
6Jul 3, 2023 21:005,28045,313,17714,908,0001,987,0002,265,088
7Jul 3, 2023 21:005,28343,086,68915,911,000994,0002,265,088
8Jul 3, 2023 21:005,28544,713,14015,917,000994,0002,527,232
9Jul 3, 2023 21:005,29235,059,65314,942,0001,992,0002,383,872
10Jul 3, 2023 21:005,46683,592,25517,491,98602,281,472
11Jul 3, 2023 21:005,47194,433,56217,506,52402,277,376
12Jul 3, 2023 21:005,47383,846,49117,514,70602,281,472