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 28, 2024 20:37Joad NacerJoad NacerScore: 4,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 28, 2024 20:374,43529,547,43313,179,0001,013,0002,424,832
2Nov 28, 2024 20:374,46332,370,92014,281,00002,531,328
3Nov 28, 2024 20:374,46329,587,50713,261,0001,020,0002,433,024
4Nov 28, 2024 20:374,46841,336,70014,297,00002,531,328
5Nov 28, 2024 20:374,47230,193,29813,288,0001,022,0002,531,328
6Nov 28, 2024 20:374,49534,735,24613,358,0001,027,0002,420,736
7Nov 28, 2024 20:374,50241,258,96813,378,0001,029,0002,531,328
8Nov 28, 2024 20:374,50335,932,25312,353,0002,058,0002,424,832
9Nov 28, 2024 20:374,53729,731,75413,482,0001,037,0002,424,832