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 03:38Joad NacerJoad NacerScore: 5,287Success
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 03:385,25842,728,37815,838,000989,0002,289,664
2Apr 17, 2024 03:385,26244,268,35816,838,00002,523,136
3Apr 17, 2024 03:385,26436,195,38214,864,0001,981,0002,289,664
4Apr 17, 2024 03:385,26836,588,60415,867,000991,0002,293,760
5Apr 17, 2024 03:385,27042,765,44214,880,0001,984,0002,371,584
6Apr 17, 2024 03:385,27138,029,40614,884,0001,984,0002,289,664
7Apr 17, 2024 03:385,27347,631,27714,888,0001,985,0002,277,376
8Apr 17, 2024 03:385,27339,713,22815,819,0001,054,0002,289,664
9Apr 17, 2024 03:385,27634,718,50414,896,0001,986,0002,289,664
10Apr 17, 2024 03:385,27742,863,57515,892,000993,0002,269,184
11Apr 17, 2024 03:385,27838,227,43414,902,0001,986,0002,285,568
12Apr 17, 2024 03:385,28439,195,98314,921,0001,989,0002,269,184
13Apr 17, 2024 03:385,28745,548,45015,924,000995,0002,273,280
14Apr 17, 2024 03:385,29542,304,47915,947,000996,0002,289,664
15Apr 17, 2024 03:385,29739,645,30614,955,0001,994,0002,273,280
16Apr 17, 2024 03:385,31044,144,82115,993,000999,0002,289,664
17Apr 17, 2024 03:385,31440,821,52815,005,0002,000,0002,277,376
18Apr 17, 2024 03:385,31538,654,58815,007,0002,000,0002,273,280
19Apr 17, 2024 03:385,48384,515,19417,544,45902,301,952
20Apr 17, 2024 03:385,50981,669,50617,629,86802,306,048
21Apr 17, 2024 03:385,51369,567,84017,640,41202,179,072
22Apr 17, 2024 03:385,52263,588,21217,670,22302,293,760
23Apr 17, 2024 03:385,527100,497,03517,686,30102,297,856
24Apr 17, 2024 03:385,53880,335,73717,722,85702,174,976