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 listMay 22, 2021 17:19Andrey TsvetkovAndrey TsvetkovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2021 17:1900000Wrong answer: expected "980388 ", got "map[0:3817 1:3818 2:3757 3:3594 4:3845 5:3843 6:3874 7:3702 8:3636 9:3715 10:3699 11:3713 12:3602 13:3594 14:3663 15:3635 16:3562 17:3648 18:3623 19:3643 20:3508 21:3534 22:3542 23:3477 24:3488 25:3479 26:3440 27:...