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:32Joad NacerJoad NacerScore: 4,608Success
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:324,55333,541,56213,531,0001,040,0002,433,024
2Nov 29, 2024 19:324,57438,506,53514,636,00002,531,328
3Nov 29, 2024 19:324,58941,631,60014,685,00002,531,328
4Nov 29, 2024 19:324,59146,534,76714,691,00002,437,120
5Nov 29, 2024 19:324,60833,435,73414,744,00002,433,024
6Nov 29, 2024 19:324,65627,220,35514,900,00002,531,328
7Nov 29, 2024 19:324,65830,773,07812,919,0001,987,0002,428,928
8Nov 29, 2024 19:324,68530,317,70313,993,000999,0002,420,736
9Nov 29, 2024 19:324,71534,092,06714,083,0001,005,0002,424,832