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 2, 2026 00:04Karthik 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 2, 2026 00:04021,847,59212,858,00002,113,536expected "977747 ", got "p11 7211,7077,6553,6465,6094,5769,5506,5455,5320,5274,5248,5146 944q117r11037 1 "
2Oct 2, 2026 00:04021,835,88012,844,00002,113,536expected "977004 ", got "p11 7719,7135,6650,6382,6198,5867,5570,5443,5305,5270,5182,5107 918q117r11014 0 "
3Oct 2, 2026 00:04021,832,69112,797,00002,113,536expected "976810 ", got "p10 7839,7079,6537,6363,6124,5840,5598,5328,5338,5304,5156,5113 915q118r10979 0 "