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 21, 2023 11:03gchebanovgchebanovScore: 5,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 11:035,48737,780,18217,559,00002,527,232
2Jul 21, 2023 11:035,50136,072,50816,567,0001,035,0002,265,088
3Jul 21, 2023 11:035,50142,976,71917,602,00002,265,088
4Jul 21, 2023 11:035,50142,977,47817,603,00002,265,088
5Jul 21, 2023 11:035,51147,008,34817,636,00002,392,064
6Jul 21, 2023 11:035,51546,693,07916,609,0001,038,0002,383,872
7Jul 21, 2023 11:035,53236,052,87017,701,00002,392,064
8Jul 21, 2023 11:035,53240,000,51317,703,00002,396,160
9Jul 21, 2023 11:035,57933,553,75715,870,0001,983,0002,392,064
10Jul 21, 2023 11:035,70693,987,20118,257,79802,277,376
11Jul 21, 2023 11:035,72386,727,30018,312,45002,240,512
12Jul 21, 2023 11:035,72486,776,33618,316,98902,281,472