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 listOct 11, 2021 15:38Mikhail ShirokovMikhail ShirokovScore: 5,758Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 15:385,70847,823,01317,252,0001,014,0002,396,160
2Oct 11, 2021 15:385,70835,715,19316,237,0002,029,0002,392,064
3Oct 11, 2021 15:385,71442,296,46616,255,0002,031,0002,523,136
4Oct 11, 2021 15:385,71847,152,69116,266,0002,033,0002,519,040
5Oct 11, 2021 15:385,73144,321,20917,320,0001,018,0002,506,752
6Oct 11, 2021 15:385,74938,789,70317,374,0001,022,0002,387,968
7Oct 11, 2021 15:385,75846,086,42618,426,00002,519,040
8Oct 11, 2021 15:385,76437,603,87617,422,0001,024,0002,519,040
9Oct 11, 2021 15:385,76839,396,90717,433,0001,025,0002,519,040
10Oct 11, 2021 15:385,93581,153,71518,990,51702,281,472
11Oct 11, 2021 15:385,95062,046,41519,038,41302,273,280
12Oct 11, 2021 15:385,96696,986,42419,091,00002,285,568