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 17, 2024 17:19Mikhail ShirokovMikhail ShirokovScore: 4,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2024 17:194,46340,959,18412,240,0002,040,0002,527,232
2Nov 17, 2024 17:114,47135,790,19712,264,0002,044,0002,527,232
3Nov 17, 2024 17:114,47230,871,73212,266,0002,044,0002,527,232
4Nov 17, 2024 17:114,47531,576,55414,320,00002,265,088
5Nov 17, 2024 17:114,47734,797,37713,302,0001,023,0002,392,064
6Nov 17, 2024 17:114,47735,730,98913,303,0001,023,0002,383,872
7Nov 17, 2024 17:114,49132,803,69014,371,00002,265,088
8Nov 17, 2024 17:114,49235,293,85113,349,0001,026,0002,383,872
9Nov 17, 2024 17:194,49430,019,89913,353,0001,027,0002,396,160
10Nov 17, 2024 17:114,50036,698,41413,372,0001,028,0002,383,872
11Nov 17, 2024 17:194,50335,199,27614,409,00002,400,256
12Nov 17, 2024 17:114,51730,760,40113,422,0001,032,0002,387,968