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, 2022 14:54Sergey SlotinSergey SlotinScore: 5,631Success
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, 2022 14:545,58847,903,32617,882,00002,277,376
2Oct 1, 2022 14:545,59840,651,73715,922,0001,990,0002,277,376
3Oct 1, 2022 14:545,60544,723,57715,943,0001,992,0002,277,376
4Oct 1, 2022 14:545,61845,540,22515,980,0001,997,0002,277,376
5Oct 1, 2022 14:545,61837,718,52115,982,0001,997,0002,277,376
6Oct 1, 2022 14:545,62340,997,61115,994,0001,999,0002,281,472
7Oct 1, 2022 14:545,63136,668,54915,015,0003,003,0002,277,376
8Oct 1, 2022 14:545,63641,702,46116,031,0002,003,0002,527,232
9Oct 1, 2022 14:545,63740,417,36915,031,0003,006,0002,277,376
10Oct 1, 2022 14:545,89294,289,46518,855,08802,306,048
11Oct 1, 2022 14:545,91281,737,25118,917,49402,289,664
12Oct 1, 2022 14:545,92665,450,55018,962,72702,306,048