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:53Joad NacerJoad NacerScore: 5,013Success
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:534,95840,287,06213,881,0001,983,0002,273,280
2Apr 17, 2024 17:534,96331,229,13314,822,0001,058,0002,289,664
3Apr 17, 2024 17:534,96531,964,16713,902,0001,986,0002,289,664
4Apr 17, 2024 17:534,97633,324,68113,932,0001,990,0002,289,664
5Apr 17, 2024 17:534,97940,126,72514,938,000995,0002,273,280
6Apr 17, 2024 17:534,98235,421,08513,949,0001,992,0002,514,944
7Apr 17, 2024 17:534,98332,115,81013,953,0001,993,0002,269,184
8Apr 17, 2024 17:534,98633,645,52613,961,0001,994,0002,273,280
9Apr 17, 2024 17:534,98738,753,37913,964,0001,994,0002,289,664
10Apr 17, 2024 17:534,99129,626,76713,974,0001,996,0002,269,184
11Apr 17, 2024 17:535,00140,575,81914,002,0002,000,0002,273,280
12Apr 17, 2024 17:535,00639,311,49614,016,0002,002,0002,289,664
13Apr 17, 2024 17:535,01332,947,63014,035,0002,005,0002,289,664
14Apr 17, 2024 17:535,01534,289,08314,043,0002,006,0002,375,680
15Apr 17, 2024 17:535,01838,505,92614,049,0002,007,0002,289,664
16Apr 17, 2024 17:535,01944,760,06914,053,0002,007,0002,265,088
17Apr 17, 2024 17:535,02436,826,43115,072,0001,004,0002,523,136
18Apr 17, 2024 17:535,03035,856,33314,085,0002,012,0002,289,664
19Apr 17, 2024 17:535,20382,030,17416,650,02202,301,952
20Apr 17, 2024 17:535,20491,893,50416,651,49102,179,072
21Apr 17, 2024 17:535,21279,662,29616,678,28502,289,664
22Apr 17, 2024 17:535,21891,572,89016,698,79302,174,976
23Apr 17, 2024 17:535,22267,449,16816,710,34102,306,048
24Apr 17, 2024 17:535,24479,300,13216,780,73902,301,952