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 listOct 1, 2026 22:53Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2026 22:53036,157,91525,365,0002,030,0002,113,536expected "974730 ", got "s122p596 1172+11045w11779 "
2Oct 1, 2026 22:53036,590,25725,443,0002,033,0002,113,536expected "978941 ", got "s128p611 1147+11050w11818 "
3Oct 1, 2026 22:53036,470,89725,482,0002,035,0002,113,536expected "977893 ", got "s127p718 1010+11054w11797 "