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 21:01Karthik 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 21:01043,722,98224,919,00002,113,536expected "978024 ", got "s125 F:962,861,854,848,852,847,852,854,842,849,856,852,857,854=12047 W:848,854,855,836,847,856,846,858,853,854,848,850,843,848=11902 1 "
2Oct 1, 2026 21:01044,873,91225,323,00002,113,536expected "975997 ", got "s136 F:1021,853,850,879,874,859,874,868,864,852,867,900,887,876=12331 W:878,894,872,855,847,836,878,836,835,841,833,854,843,839=11947 1 "
3Oct 1, 2026 21:01032,874,83723,877,00002,113,536expected "977381 ", got "s120 F:953,815,817,818,815,810,815,819,820,815,815,810,821,815=11565 W:815,813,811,818,814,815,813,814,810,815,814,813,812,809=11395 1 "