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:10Joad NacerJoad NacerScore: 5,371Success
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:105,33235,786,63215,056,0002,007,0002,265,088
2Apr 17, 2024 03:105,33840,270,56815,072,0002,009,0002,289,664
3Apr 17, 2024 03:095,34034,720,05616,082,0001,005,0002,289,664
4Apr 17, 2024 03:095,34138,719,35715,081,0002,010,0002,289,664
5Apr 17, 2024 03:095,34138,707,75316,085,0001,005,0002,289,664
6Apr 17, 2024 03:105,34544,009,61015,091,0002,012,0002,289,664
7Apr 17, 2024 03:095,34733,303,60316,105,0001,006,0002,289,664
8Apr 17, 2024 03:095,35235,812,22416,119,0001,007,0002,289,664
9Apr 17, 2024 03:095,35437,843,48816,127,0001,007,0002,527,232
10Apr 17, 2024 03:105,36840,553,80915,156,0002,020,0002,379,776
11Apr 17, 2024 03:105,36839,718,80516,167,0001,010,0002,289,664
12Apr 17, 2024 03:095,37034,557,99715,162,0002,021,0002,289,664
13Apr 17, 2024 03:095,37139,332,95015,165,0002,022,0002,383,872
14Apr 17, 2024 03:105,37133,202,54216,176,0001,011,0002,273,280
15Apr 17, 2024 03:095,37933,819,88916,201,0001,012,0002,387,968
16Apr 17, 2024 03:105,39146,641,29115,222,0002,029,0002,289,664
17Apr 17, 2024 03:105,39840,136,10315,242,0002,032,0002,273,280
18Apr 17, 2024 03:105,40541,778,72415,261,0002,034,0002,371,584
19Apr 17, 2024 03:105,61185,244,82017,954,62002,301,952
20Apr 17, 2024 03:095,61795,576,75017,975,42002,306,048
21Apr 17, 2024 03:095,63266,032,68218,022,70502,301,952
22Apr 17, 2024 03:095,63377,242,75518,027,15902,297,856
23Apr 17, 2024 03:105,65382,869,35918,090,85802,301,952
24Apr 17, 2024 03:105,65694,256,24018,099,88402,306,048