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 20, 2024 17:14Joad NacerJoad NacerScore: 5,019Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 17:284,97240,648,13515,909,00002,289,664
2Apr 20, 2024 17:284,98538,318,35813,958,0001,994,0002,527,232
3Apr 20, 2024 17:284,98833,268,18113,965,0001,995,0002,269,184
4Apr 20, 2024 17:144,98937,195,88113,970,0001,995,0002,289,664
5Apr 20, 2024 17:144,99140,837,15214,972,000998,0002,273,280
6Apr 20, 2024 17:144,99339,495,18013,982,0001,997,0002,527,232
7Apr 20, 2024 17:285,00337,563,76414,007,0002,001,0002,277,376
8Apr 20, 2024 17:285,00842,471,54714,024,0002,003,0002,289,664
9Apr 20, 2024 17:145,01236,767,93515,036,0001,002,0002,289,664
10Apr 20, 2024 17:285,01338,748,06814,038,0002,005,0002,523,136
11Apr 20, 2024 17:285,01445,680,22314,040,0002,005,0002,289,664
12Apr 20, 2024 17:145,01537,814,47514,042,0002,006,0002,379,776
13Apr 20, 2024 17:145,01937,800,44914,053,0002,007,0002,289,664
14Apr 20, 2024 17:145,02032,657,35215,061,0001,004,0002,269,184
15Apr 20, 2024 17:285,03238,737,32215,097,0001,006,0002,527,232
16Apr 20, 2024 17:285,03440,028,06814,096,0002,013,0002,269,184
17Apr 20, 2024 17:145,03637,524,48314,100,0002,014,0002,265,088
18Apr 20, 2024 17:145,04032,372,70114,112,0002,016,0002,351,104
19Apr 20, 2024 17:285,24280,735,80716,773,41702,301,952
20Apr 20, 2024 17:285,28696,775,12616,916,62302,301,952
21Apr 20, 2024 17:285,29792,736,12916,949,03602,301,952
22Apr 20, 2024 17:145,30367,549,46516,969,56902,179,072
23Apr 20, 2024 17:145,30495,070,37416,973,68902,301,952
24Apr 20, 2024 17:145,30678,887,39816,978,75002,297,856