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:57Joad NacerJoad NacerScore: 5,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 19, 2024 11:465,53237,251,26716,662,0001,041,0002,273,280
2Apr 19, 2024 11:465,57544,990,22216,848,000991,0002,289,664
3Apr 19, 2024 11:465,57940,973,19516,863,000991,0002,289,664
4Apr 17, 2024 18:575,58448,627,73117,869,00002,269,184
5Apr 17, 2024 18:575,58644,928,14715,889,0001,986,0002,289,664
6Apr 19, 2024 11:465,59444,145,43816,849,0001,053,0002,289,664
7Apr 17, 2024 18:575,60441,464,23915,940,0001,992,0002,273,280
8Apr 19, 2024 11:465,60737,741,83316,947,000996,0002,269,184
9Apr 19, 2024 11:465,61339,448,17916,963,000997,0002,289,664
10Apr 17, 2024 18:575,62445,292,48215,999,0001,999,0002,289,664
11Apr 19, 2024 11:465,63535,420,48517,032,0001,001,0002,285,568
12Apr 17, 2024 18:575,63639,867,53916,031,0002,003,0002,265,088
13Apr 19, 2024 11:465,67248,149,05917,143,0001,008,0002,285,568
14Apr 17, 2024 18:575,69659,079,18818,226,48202,297,856
15Apr 17, 2024 18:575,70135,855,59016,217,0002,027,0002,289,664
16Apr 17, 2024 18:575,70939,362,20716,240,0002,030,0002,289,664
17Apr 17, 2024 18:575,70941,022,02916,240,0002,030,0002,289,664
18Apr 19, 2024 11:465,71142,670,55217,259,0001,015,0002,269,184
19Apr 17, 2024 18:575,72339,953,89316,279,0002,034,0002,289,664
20Apr 19, 2024 11:465,77488,988,40718,476,54602,297,856
21Apr 17, 2024 18:575,78396,244,49918,505,93202,301,952
22Apr 19, 2024 11:465,80694,766,08418,578,23802,306,048
23Apr 17, 2024 18:575,81698,739,11818,612,13902,301,952
24Apr 19, 2024 11:465,83379,601,66318,666,92902,174,976