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:00Joad NacerJoad NacerScore: 4,529Success
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:014,49527,643,98813,357,0001,027,0002,420,736
2Nov 29, 2024 19:014,51830,135,96314,457,00002,437,120
3Nov 29, 2024 19:014,52328,329,52214,473,00002,433,024
4Nov 29, 2024 19:014,52641,759,37214,482,00002,437,120
5Nov 29, 2024 19:004,52929,579,20814,492,00002,514,944
6Nov 29, 2024 19:004,53327,321,60914,507,00002,531,328
7Nov 29, 2024 19:014,53433,582,06013,472,0001,036,0002,433,024
8Nov 29, 2024 19:004,54030,483,51714,528,00002,510,848
9Nov 29, 2024 19:014,56544,552,10814,607,00002,531,328