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 listApr 17, 2024 18:36Joad NacerJoad NacerScore: 4,958Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 18:364,88431,462,67614,587,0001,041,0002,289,664
2Apr 17, 2024 18:364,91036,813,85014,666,0001,047,0002,285,568
3Apr 17, 2024 18:364,91631,290,91314,682,0001,048,0002,281,472
4Apr 17, 2024 18:364,92242,280,20614,700,0001,050,0002,289,664
5Apr 17, 2024 18:364,95247,482,79813,866,0001,980,0002,355,200
6Apr 17, 2024 18:364,95731,020,12614,872,000991,0002,289,664
7Apr 17, 2024 18:364,95841,538,99514,873,000991,0002,531,328
8Apr 17, 2024 18:364,96136,302,25513,890,0001,984,0002,289,664
9Apr 17, 2024 18:365,08346,690,82314,234,0002,033,0002,289,664
10Apr 17, 2024 18:365,14891,046,60316,472,65902,297,856
11Apr 17, 2024 18:365,18680,413,48016,594,07102,183,168
12Apr 17, 2024 18:365,21586,342,64416,688,30202,306,048