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 13, 2021 20:55Andrey TsvetkovAndrey TsvetkovScore: 5,993Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2021 20:555,87178,657,40318,786,83702,224,128
2Jul 13, 2021 20:555,95962,869,53319,067,97702,232,320
3Jul 13, 2021 20:555,97542,773,77017,108,0002,012,0002,326,528
4Jul 13, 2021 20:555,97943,551,67916,113,0003,021,0002,527,232
5Jul 13, 2021 20:555,98147,518,10017,124,0002,014,0002,326,528
6Jul 13, 2021 20:555,98336,024,00816,122,0003,022,0002,531,328
7Jul 13, 2021 20:555,99345,412,52917,161,0002,018,0002,527,232
8Jul 13, 2021 20:555,99667,461,55119,187,57402,236,416
9Jul 13, 2021 20:556,00343,837,79717,188,0002,022,0002,531,328
10Jul 13, 2021 20:556,00442,911,62317,191,0002,022,0002,314,240
11Jul 13, 2021 20:556,01341,448,26217,216,0002,025,0002,523,136
12Jul 13, 2021 20:556,03241,121,00917,271,0002,031,0002,334,720