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 24, 2026 01:58olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 01:58017,493,2071,212,00002,498,560expected "974892 ", got "H 0000000000000022 0000000000005015 000000000ee6b280 0000000000008180 70e001a11cb951ad 65599162c0fe028b /mnt/hldata/data1485544819 "
2Apr 24, 2026 01:58012,832,35701,180,0002,510,848expected "975793 ", got "H 0000000000000022 0000000000005016 000000000ee6b280 0000000000008180 32e7bdf9dfe92a24 b8f97ad184c8d96e /mnt/hldata/data1843982054 "
3Apr 24, 2026 01:58015,068,10401,139,0002,502,656expected "976761 ", got "H 0000000000000022 0000000000005017 000000000ee6b280 0000000000008180 578a3ff3fe095038 03f92f3b25c4201c /mnt/hldata/data84146582 "