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 listJul 20, 2023 23:05gchebanovgchebanovScore: 5,367Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 23:055,33046,567,94215,051,0002,006,0002,265,088
2Jul 20, 2023 23:055,33442,622,43915,062,0002,008,0002,265,088
3Jul 20, 2023 23:055,33747,020,16116,074,0001,004,0002,265,088
4Jul 20, 2023 23:055,34141,921,48517,092,00002,392,064
5Jul 20, 2023 23:055,35340,822,83516,122,0001,007,0002,506,752
6Jul 20, 2023 23:055,35549,154,10015,120,0002,016,0002,490,368
7Jul 20, 2023 23:055,36733,275,07315,155,0002,020,0002,265,088
8Jul 20, 2023 23:055,36944,143,05215,161,0002,021,0002,375,680
9Jul 20, 2023 23:055,37835,729,25416,199,0001,012,0002,265,088
10Jul 20, 2023 23:055,48972,440,63817,564,78402,281,472
11Jul 20, 2023 23:055,51181,214,48617,635,13602,285,568
12Jul 20, 2023 23:055,52288,455,53517,671,34502,281,472