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 17:55Joad NacerJoad NacerScore: 4,964Success
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 17:554,90447,050,36614,648,0001,046,0002,289,664
2Apr 17, 2024 17:554,95430,974,81814,864,000990,0002,289,664
3Apr 17, 2024 17:554,95547,003,19614,866,000991,0002,289,664
4Apr 17, 2024 17:554,95646,413,55713,877,0001,982,0002,523,136
5Apr 17, 2024 17:554,95635,959,57113,876,0001,982,0002,289,664
6Apr 17, 2024 17:554,95737,605,68413,880,0001,982,0002,289,664
7Apr 17, 2024 17:554,96038,166,25915,872,00002,289,664
8Apr 17, 2024 17:554,96239,367,20014,887,000992,0002,289,664
9Apr 17, 2024 17:554,96236,456,24314,887,000992,0002,265,088
10Apr 17, 2024 17:554,96337,943,65313,898,0001,985,0002,289,664
11Apr 17, 2024 17:554,96345,162,48714,889,000992,0002,289,664
12Apr 17, 2024 17:554,96332,103,25214,890,000992,0002,289,664
13Apr 17, 2024 17:554,96431,752,69014,892,000992,0002,289,664
14Apr 17, 2024 17:554,96446,315,77914,892,000992,0002,289,664
15Apr 17, 2024 17:554,96840,877,70815,899,00002,523,136
16Apr 17, 2024 17:554,97344,083,76713,923,0001,989,0002,289,664
17Apr 17, 2024 17:554,97736,775,22113,935,0001,990,0002,289,664
18Apr 17, 2024 17:554,99740,843,59413,991,0001,998,0002,289,664
19Apr 17, 2024 17:555,16866,892,49616,538,76902,297,856
20Apr 17, 2024 17:555,18998,657,42516,605,94802,179,072
21Apr 17, 2024 17:555,19377,034,02316,616,87102,301,952
22Apr 17, 2024 17:555,19680,570,28916,627,02102,293,760
23Apr 17, 2024 17:555,20999,290,21816,668,88202,301,952
24Apr 17, 2024 17:555,23284,562,65516,743,88002,306,048