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 listApr 6, 2025 08:19Chandrasekaran AkashChandrasekaran AkashError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 6, 2025 08:1700000Error: expected "976867 ", got "977968 "stderr
2Apr 6, 2025 08:194,44842,254,79112,199,0002,033,0002,269,184
3Apr 6, 2025 08:194,45627,795,27112,222,0002,037,0002,437,120
4Apr 6, 2025 08:194,46529,556,76712,247,0002,041,0002,437,120
5Apr 6, 2025 08:194,46530,423,67613,269,0001,020,0002,531,328
6Apr 6, 2025 08:194,46941,825,39413,279,0001,021,0002,441,216
7Apr 6, 2025 08:194,48330,693,60912,295,0002,049,0002,531,328
8Apr 6, 2025 08:194,48639,793,02914,354,00002,531,328
9Apr 6, 2025 08:194,48836,679,54013,336,0001,025,0002,433,024
10Apr 6, 2025 08:194,49636,086,08014,387,00002,531,328