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 24, 2024 01:28emily graceemily graceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2024 01:2700000Error: expected "977266 ", got "488888 "
2Jul 24, 2024 01:4000000Error: expected "975692 ", got "486880 "
3Jul 24, 2024 01:284,65632,312,89112,914,0001,986,0002,281,472
4Jul 24, 2024 01:284,67636,838,33412,969,0001,995,0002,289,664
5Jul 24, 2024 01:284,69432,021,27013,019,0002,003,0002,277,376
6Jul 24, 2024 01:284,69631,287,67914,025,0001,001,0002,289,664
7Jul 24, 2024 01:284,69639,509,21514,027,0001,001,0002,289,664
8Jul 24, 2024 01:284,70138,660,33413,038,0002,005,0002,277,376
9Jul 24, 2024 01:284,71630,453,05513,079,0002,012,0002,281,472
10Jul 24, 2024 01:284,71832,336,77413,086,0002,013,0002,289,664
11Jul 24, 2024 01:284,73532,509,38614,143,0001,010,0002,527,232
12Jul 24, 2024 01:284,889114,909,98315,644,54302,306,048
13Jul 24, 2024 01:284,899101,620,11615,676,34102,297,856
14Jul 24, 2024 01:284,95385,214,92715,849,68102,297,856