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 18:29Joad NacerJoad NacerScore: 4,376Success
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 18:294,35029,361,89311,933,0001,988,0002,428,928
2Nov 29, 2024 18:294,36534,241,41912,972,000997,0002,424,832
3Nov 29, 2024 18:284,36829,969,48712,980,000998,0002,437,120
4Nov 29, 2024 18:284,37234,353,30912,991,000999,0002,531,328
5Nov 29, 2024 18:294,37629,365,09313,002,0001,000,0002,437,120
6Nov 29, 2024 18:294,37831,885,76413,010,0001,000,0002,433,024
7Nov 29, 2024 18:294,38035,683,53812,013,0002,002,0002,510,848
8Nov 29, 2024 18:284,38432,722,71212,024,0002,004,0002,437,120
9Nov 29, 2024 18:294,41134,551,63313,106,0001,008,0002,420,736