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 13, 2024 15:07Brian WardBrian WardScore: 5,700Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2024 15:445,66940,753,02316,126,0002,015,0002,289,664
2Apr 13, 2024 15:075,67839,607,68017,159,0001,009,0002,347,008
3Apr 13, 2024 15:445,68044,844,63016,156,0002,019,0002,351,104
4Apr 13, 2024 15:075,68839,244,45717,190,0001,011,0002,289,664
5Apr 13, 2024 15:445,69346,787,01617,207,0001,012,0002,289,664
6Apr 13, 2024 15:075,69336,813,15717,204,0001,012,0002,347,008
7Apr 13, 2024 15:445,69343,352,24016,193,0002,024,0002,351,104
8Apr 13, 2024 15:075,69341,198,02816,193,0002,024,0002,359,296
9Apr 13, 2024 15:445,69435,176,28516,197,0002,024,0002,355,200
10Apr 13, 2024 15:445,69545,371,50216,199,0002,024,0002,289,664
11Apr 13, 2024 15:075,69640,748,94017,215,0001,012,0002,355,200
12Apr 13, 2024 15:445,69938,491,48817,223,0001,013,0002,289,664
13Apr 13, 2024 15:075,70041,041,69016,213,0002,026,0002,355,200
14Apr 13, 2024 15:445,71643,600,24217,274,0001,016,0002,342,912
15Apr 13, 2024 15:445,71736,654,89416,262,0002,032,0002,289,664
16Apr 13, 2024 15:075,73542,428,74217,333,0001,019,0002,289,664
17Apr 13, 2024 15:075,74233,079,83017,354,0001,020,0002,461,696
18Apr 13, 2024 15:075,75041,576,94517,377,0001,022,0002,289,664
19Apr 13, 2024 15:075,85295,599,76618,726,90502,260,992
20Apr 13, 2024 15:445,86674,486,08618,771,87102,224,128
21Apr 13, 2024 15:075,86782,030,27818,773,45402,215,936
22Apr 13, 2024 15:445,87883,823,35718,808,18302,220,032
23Apr 13, 2024 15:445,89584,294,40418,862,48202,215,936
24Apr 13, 2024 15:075,922104,849,67218,950,95402,260,992