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 listNov 29, 2024 19:18Joad NacerJoad NacerScore: 4,345Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2024 19:184,33729,985,25812,887,000991,0002,433,024
2Nov 29, 2024 19:184,33837,548,92612,889,000991,0002,437,120
3Nov 29, 2024 19:184,33934,691,68112,895,000991,0002,437,120
4Nov 29, 2024 19:184,33931,220,62012,894,000991,0002,514,944
5Nov 29, 2024 19:184,34132,249,63112,899,000992,0002,433,024
6Nov 29, 2024 19:184,34230,126,64112,903,000992,0002,424,832
7Nov 29, 2024 19:184,34529,905,37012,912,000993,0002,428,928
8Nov 29, 2024 19:184,34928,682,54911,929,0001,988,0002,428,928
9Nov 29, 2024 19:184,35033,203,66212,927,000994,0002,424,832
10Nov 29, 2024 19:184,35529,715,90211,945,0001,990,0002,437,120
11Nov 29, 2024 19:184,35734,285,23412,947,000995,0002,269,184
12Nov 29, 2024 19:184,39035,953,29712,042,0002,007,0002,433,024